File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,25 @@ jobs:
14
14
name : Release-plz
15
15
runs-on : ubuntu-latest
16
16
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 }}
17
27
- name : Checkout repository
18
28
uses : actions/checkout@v4
19
29
with :
20
30
fetch-depth : 0
31
+ token : ${{ steps.generate-token.outputs.token }}
21
32
- name : Install Rust toolchain
22
33
uses : dtolnay/rust-toolchain@stable
23
34
- name : Run release-plz
24
35
uses : MarcoIeni/release-plz-action@v0.5
25
36
env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ GITHUB_TOKEN : ${{ steps.generate-token.outputs.token }}
27
38
CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
You can’t perform that action at this time.
0 commit comments