Skip to content

Commit

Permalink
feat(ci): integrate mergify and GH action to update flake lock
Browse files Browse the repository at this point in the history
  • Loading branch information
akosnad committed Dec 12, 2024
1 parent 6f1df31 commit 684beea
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit 684beea

Please sign in to comment.