Skip to content

Commit 05beeb8

Browse files
authored
Merge pull request #277 from alexrudy/chore/ci/release-plz-bot
Switch to github app for relase-plz
2 parents acdbb06 + b6830fa commit 05beeb8

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/publish.yml

+14-2
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,30 @@ jobs:
1515
runs-on: ubuntu-latest
1616
if: ${{ github.repository_owner == 'alexrudy' }}
1717
steps:
18+
# Generating a GitHub token, so that PRs and tags created by
19+
# the release-plz-action can trigger actions workflows.
20+
- name: Generate GitHub token
21+
uses: actions/create-github-app-token@v1
22+
id: generate-token
23+
with:
24+
# GitHub App ID secret name
25+
app-id: ${{ secrets.APP_ID }}
26+
# GitHub App private key secret name
27+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
28+
1829
- name: Checkout
1930
uses: actions/checkout@v4
2031
with:
2132
fetch-depth: 0
33+
token: ${{ steps.generate-token.outputs.token }}
2234

2335
- name: Install rust toolchain
2436
uses: dtolnay/rust-toolchain@master
2537
with:
2638
toolchain: stable
2739

2840
- name: Run release-plz
29-
uses: MarcoIeni/release-plz-action@v0.5
41+
uses: MarcoIeni/release-plz-action@main
3042
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
3244
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 commit comments

Comments
 (0)