Skip to content

Commit e5957ff

Browse files
authored
Authorise the pull request using the SciTools App token. (#418)
1 parent 76ae078 commit e5957ff

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/refresh-lockfiles.yml

+11
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,26 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
28+
2829
- name: install nox
2930
run: |
3031
source $CONDA/bin/activate base
3132
conda install -y -c conda-forge nox pyyaml
33+
3234
- name: generate lockfiles
3335
run: $CONDA/bin/nox --session update_lockfiles
36+
37+
- name: generate token
38+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
39+
id: generate-token
40+
with:
41+
app_id: ${{ secrets.AUTH_APP_ID }}
42+
private_key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
43+
3444
- name: create pull request
3545
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79
3646
with:
47+
token: ${{ steps.generate-token.outputs.token }}
3748
commit-message: Updated environment lockfiles
3849
delete-branch: true
3950
branch: auto-update-lockfiles

0 commit comments

Comments
 (0)