Skip to content

Commit 19a20f1

Browse files
committed
chore: add weekly flake.lock update workflow
Adds GitHub Action to automatically update flake.lock every Sunday. Uses DeterminateSystems/update-flake-lock to create PRs with updated dependencies, preventing large painful updates like the recent 2-year gap. Targets develop branch with automated and dependencies labels. Can also be triggered manually via workflow_dispatch.
1 parent 3df6c4a commit 19a20f1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Flake Lock
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
8+
jobs:
9+
update-flake-lock:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Install Nix
16+
uses: DeterminateSystems/nix-installer-action@v14
17+
18+
- name: Update flake.lock
19+
uses: DeterminateSystems/update-flake-lock@v24
20+
with:
21+
pr-title: "chore: update flake.lock"
22+
pr-body: |
23+
Automated update of flake.lock dependencies.
24+
25+
This PR updates all flake inputs to their latest versions.
26+
27+
Please review the changes and ensure CI passes before merging.
28+
pr-labels: |
29+
dependencies
30+
automated
31+
branch: update-flake-lock
32+
base-branch: develop
33+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)