Skip to content

Commit d37055f

Browse files
authored
ci: use release bot for releasing (#145)
1 parent bbc8b91 commit d37055f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/release-plz.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ jobs:
2222
- &install-rust
2323
name: Install Rust toolchain
2424
uses: dtolnay/rust-toolchain@stable
25+
- &get-app-token
26+
uses: actions/create-github-app-token@v2.0.6
27+
id: app-token
28+
with:
29+
app-id: ${{ secrets.DS_RELEASE_BOT_ID }}
30+
private-key: ${{ secrets.DS_RELEASE_BOT_PRIVATE_KEY }}
2531
- name: Run release-plz
2632
uses: release-plz/action@v0.5
2733
with:
2834
command: release
2935
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3137
release-plz-pr:
3238
name: Release-plz PR
3339
runs-on: ubuntu-latest
@@ -42,9 +48,10 @@ jobs:
4248
steps:
4349
- *checkout
4450
- *install-rust
51+
- *get-app-token
4552
- name: Run release-plz
4653
uses: release-plz/action@v0.5
4754
with:
4855
command: release-pr
4956
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)