Skip to content

Commit

Permalink
ci: add token for cron-update-rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Aug 28, 2024
1 parent 775e4ae commit 054d148
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cron-update-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Update rust-version to use latest stable
run: |
set -x
Expand All @@ -30,7 +35,7 @@ jobs:
if: env.changes_made == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.generate-token.outputs.token }}
author: Update Rustc Bot <bot@example.com>
committer: Update Rustc Bot <bot@example.com>
branch: create-pull-request/update-rust-version
Expand Down

0 comments on commit 054d148

Please sign in to comment.