Skip to content

Commit 93d15c3

Browse files
committed
ci(gh-actions): Fix update-flake-lock workflow
1 parent a07cbf2 commit 93d15c3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/update-flake-lock.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ on:
66

77
# Run every Sunday at 00:00:
88
schedule:
9-
- cron: 5 * * * * # FIXME: try if it works
10-
# - cron: 0 0 * * 0
9+
- cron: 0 0 * * 0
1110

1211
jobs:
1312
main:
14-
# Check if the event is not triggered by a fork
15-
if: github.event.pull_request.head.repo.full_name == github.repository
1613
runs-on: ubuntu-latest
1714

1815
steps:
@@ -27,9 +24,16 @@ jobs:
2724
id: update-lockfile
2825
run: ./scripts/commit_flake_update.bash
2926

27+
- uses: tibdex/[email protected]
28+
id: generate-token
29+
with:
30+
app_id: ${{ secrets.APP_ID }}
31+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
32+
3033
- name: Create Pull Request
3134
uses: peter-evans/create-pull-request@v5
3235
with:
36+
token: ${{ steps.generate-token.outputs.token }}
3337
title: 'Update Nix Flake lockfile'
3438
commit-message: ${{ env.COMMIT_MSG }}
3539
branch: 'create-pull-request/update-flake-lockfile'

0 commit comments

Comments
 (0)