Skip to content

Commit b580267

Browse files
committed
ci: Add flake lock updater
1 parent 098bf00 commit b580267

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: update-flake-lock
2+
on:
3+
workflow_dispatch: # allows manual triggering
4+
schedule:
5+
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
6+
7+
jobs:
8+
lockfile:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
- name: Install Nix
14+
uses: cachix/install-nix-action@v17
15+
with:
16+
extra_nix_config: |
17+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
18+
- name: Update flake.lock
19+
uses: DeterminateSystems/update-flake-lock@main
20+
with:
21+
pr-title: "Update flake.lock" # Title of PR to be created
22+
pr-labels: | # Labels to be set on the PR
23+
automated
24+
path-to-flake-dir: 'example/'

0 commit comments

Comments
 (0)