Skip to content

Commit

Permalink
ci: allow release-plz to trigger actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Jul 15, 2024
1 parent 13331dc commit 94770b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ jobs:
name: Release-plz
runs-on: ubuntu-latest
steps:
# Based on
# https://github.com/MarcoIeni/release-plz/blob/16ff38e4d3a52975ef989330e2dbda9ef0d4827b/.github/workflows/release-plz.yml#L18-L25
# Generate a GitHub token, so that PRs and tags created by the
# release-plz-action trigger workflow actions.
- name: Generate GitHub token
uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
Expand All @@ -23,5 +33,5 @@ jobs:
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 94770b2

Please sign in to comment.