Skip to content

Commit 641b0a5

Browse files
committed
Add nix-flake lock update github workflow
1 parent a1c8bf8 commit 641b0a5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# https://github.com/dependabot/dependabot-core/issues/7340
2+
3+
name: Update nix-flake lock
4+
on:
5+
workflow_dispatch: # allows manual triggering
6+
schedule:
7+
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
lockfile:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install nix
21+
uses: nixbuild/nix-quick-install-action@v30
22+
23+
- name: Update flake.lock
24+
uses: DeterminateSystems/update-flake-lock@v24
25+
with:
26+
token: ${{ secrets.GH_TOKEN_NIX_FLAKE_UPDATE }}
27+
commit-msg: Update flake.lock
28+
branch: update/nix-flake-lock-action
29+
pr-title: Update flake.lock
30+
pr-labels: |
31+
A-nix
32+
C-dependency
33+
pr-body: |
34+
{{ env.GIT_COMMIT_MESSAGE }}

0 commit comments

Comments
 (0)