Skip to content

Commit 4c0b472

Browse files
committedNov 10, 2024·
ci: make release-plz use github app token
1 parent 2812162 commit 4c0b472

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed
 

‎.github/workflows/publish.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,25 @@ jobs:
1414
name: Release-plz
1515
runs-on: ubuntu-latest
1616
steps:
17+
# Generating a GitHub token, so that PRs and tags created by
18+
# the release-plz-action can trigger actions workflows.
19+
- name: Generate GitHub token
20+
uses: actions/create-github-app-token@v1
21+
id: generate-token
22+
with:
23+
# GitHub App ID secret name
24+
app-id: ${{ secrets.RELEASE_PLZ_APP_ID }}
25+
# GitHub App private key secret name
26+
private-key: ${{ secrets.RELEASE_PLZ_APP_PRIVATE_KEY }}
1727
- name: Checkout repository
1828
uses: actions/checkout@v4
1929
with:
2030
fetch-depth: 0
31+
token: ${{ steps.generate-token.outputs.token }}
2132
- name: Install Rust toolchain
2233
uses: dtolnay/rust-toolchain@stable
2334
- name: Run release-plz
2435
uses: MarcoIeni/release-plz-action@v0.5
2536
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
2738
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)
Please sign in to comment.