Skip to content

Commit 8d914fc

Browse files
authored
Ask ESMValBot to create the lockfile update pull request (#4507)
1 parent eb2b8d3 commit 8d914fc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/update-lockfiles.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,25 @@ jobs:
1919
fetch-depth: 0
2020
persist-credentials: false
2121
- name: Set up pixi
22-
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
22+
uses: prefix-dev/setup-pixi@5185adfbffb4bd703da3010310260805d89ebb11 # v0.9.6
2323
with:
2424
run-install: false
2525
- name: Update lockfiles
2626
run: |
2727
set -o pipefail
2828
pixi update --json | pixi exec pixi-diff-to-markdown >> diff.md
29+
- name: Generate a token
30+
id: generate-token
31+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
32+
with:
33+
client-id: ${{ vars.ESMVALBOT_CLIENT_ID }}
34+
private-key: ${{ secrets.ESMVALBOT_PRIVATE_KEY }}
35+
permission-contents: write
36+
permission-pull-requests: write
2937
- name: Create pull request
3038
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
3139
with:
32-
token: ${{ secrets.GITHUB_TOKEN }}
40+
token: ${{ steps.generate-token.outputs.token }}
3341
commit-message: Update pixi lockfile
3442
title: Update pixi lockfile
3543
body-path: diff.md

0 commit comments

Comments
 (0)