Skip to content

Commit 073983f

Browse files
committed
.github/workflows/update-flake-lock.yml: merge automatically
1 parent c5b6bf0 commit 073983f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@ on:
44
workflow_dispatch:
55
schedule:
66
- cron: "38 0 * * 0,4"
7-
permissions:
8-
pull-requests: write
9-
contents: write
107
jobs:
118
createPullRequest:
129
runs-on: ubuntu-latest
1310
steps:
1411
- uses: actions/checkout@v4
1512
- name: Install Nix
1613
uses: cachix/install-nix-action@v31
14+
- name: Create GitHub App token
15+
uses: actions/create-github-app-token@v2
16+
id: app-token
1717
with:
18-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
18+
app-id: ${{ vars.CI_APP_ID }}
19+
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
20+
permission-contents: write
21+
permission-pull-requests: write
1922
- name: Update flake.lock
2023
uses: DeterminateSystems/update-flake-lock@v26
21-
with:
22-
pr-labels: | # Labels to be set on the PR
23-
merge-queue
24+
id: pr
25+
- name: Enable Automerge
26+
run: gh pr merge --auto --merge ${{ steps.pr.outputs.pull-request-number }}
27+
env:
28+
GH_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)