From 684beea8b5fe12669d4a41897cd57b59955a5a15 Mon Sep 17 00:00:00 2001 From: akosnad Date: Thu, 12 Dec 2024 17:47:36 +0100 Subject: [PATCH] feat(ci): integrate mergify and GH action to update flake lock --- .github/workflows/update-flake-lock.yml | 23 +++++++++++++++++++++++ .mergify.yml | 13 +++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/update-flake-lock.yml create mode 100644 .mergify.yml diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml new file mode 100644 index 0000000..dba21ef --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -0,0 +1,23 @@ +name: Update Flake +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: '30 0 * * *' +permissions: + pull-requests: write + contents: write +jobs: + createPullRequest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Nix + uses: cachix/install-nix-action@v30 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Update flake.lock + uses: DeterminateSystems/update-flake-lock@v24 + with: + pr-labels: | + merge-queue diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..54fff4c --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,13 @@ +queue_rules: + - name: default + merge_conditions: + - check-success=buildbot/nix-build + merge_method: rebase + +pull_request_rules: + - name: Queue + conditions: + - base=main + - label~=merge-queue|dependencies + actions: + queue: