Skip to content

Commit 0749c90

Browse files
authored
Update update.yml: it was failing due to missing privs (#1575)
1 parent 725015f commit 0749c90

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

.github/workflows/update.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
name: update-flake-lock
1+
name: "Flake.lock: update Nix dependencies"
2+
23
on:
3-
workflow_dispatch:
4+
workflow_dispatch: # allows manual triggering
45
schedule:
5-
- cron: "0 0 * * 0"
6+
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
67

78
jobs:
8-
lockfile:
9-
runs-on: ubuntu-22.04
9+
nix-flake-update:
1010
permissions:
11-
id-token: "write"
12-
contents: "read"
11+
contents: write
12+
id-token: write
13+
issues: write
14+
pull-requests: write
15+
runs-on: ubuntu-latest
1316
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
- name: Install Nix
17-
uses: DeterminateSystems/determinate-nix-action@main
18-
- name: Enable FlakeHub Cache
19-
uses: DeterminateSystems/flakehub-cache-action@main
20-
- name: Check flake
21-
uses: DeterminateSystems/flake-checker-action@main
22-
- name: Update flake.lock
23-
uses: DeterminateSystems/update-flake-lock@main
17+
- uses: actions/checkout@v4
18+
- uses: DeterminateSystems/determinate-nix-action@v3
19+
- uses: DeterminateSystems/update-flake-lock@main
20+
with:
21+
pr-title: "Update Nix flake inputs" # Title of PR to be created
22+
pr-labels: | # Labels to be set on the PR
23+
dependencies
24+
automated

0 commit comments

Comments
 (0)