Skip to content

Commit

Permalink
Authorise the pull request using the SciTools App token. (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
trexfeathers authored Oct 3, 2024
1 parent 76ae078 commit e5957ff
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/refresh-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: install nox
run: |
source $CONDA/bin/activate base
conda install -y -c conda-forge nox pyyaml
- name: generate lockfiles
run: $CONDA/bin/nox --session update_lockfiles

- name: generate token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
id: generate-token
with:
app_id: ${{ secrets.AUTH_APP_ID }}
private_key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}

- name: create pull request
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Updated environment lockfiles
delete-branch: true
branch: auto-update-lockfiles
Expand Down

0 comments on commit e5957ff

Please sign in to comment.