Skip to content

Commit 30807bc

Browse files
authored
ci: add github app token for release pr (#427)
1 parent 958251b commit 30807bc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/create-release-pr.yml

+8
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ jobs:
1111
name: bump_version
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Create GitHub App Token
15+
uses: actions/create-github-app-token@v1
16+
id: generate_token
17+
with:
18+
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
19+
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
20+
1421
- name: Checkout
1522
uses: actions/checkout@v4
1623
with:
@@ -57,6 +64,7 @@ jobs:
5764
- name: Create Pull Request
5865
uses: dfinity/ci-tools/actions/create-pr@main
5966
with:
67+
token: ${{ steps.generate_token.outputs.token }}
6068
branch_name: 'release/${{ steps.bump_version.outputs.version }}'
6169
pull_request_title: 'chore: release ${{ steps.bump_version.outputs.version }}'
6270
pull_request_body: |

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
run: pnpm build
5050

5151
- name: Generate release notes
52-
run: cz changelog ${{ github.ref_name }} --file-name RELEASE_NOTES.md
52+
uses: dfinity/ci-tools/actions/generate-release-notes@main
5353

5454
- name: Release ic-representation-independent-hash Cargo crate
5555
run: cargo publish -p ic-representation-independent-hash --token ${CRATES_TOKEN}

0 commit comments

Comments
 (0)