Skip to content

Commit 46f5c4f

Browse files
ci(release): use dynamic token (#36)
1 parent f251f58 commit 46f5c4f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,18 @@ jobs:
4545
matrix:
4646
package: ${{ fromJSON(needs.setup-release-context.outputs.packages) }}
4747
steps:
48+
- name: Get Token
49+
id: get_token
50+
uses: peter-murray/workflow-application-token-action@v4
51+
with:
52+
application_id: "${{ secrets.RELEASE_PLEASE_APPLICATION_ID }}"
53+
application_private_key: ${{ secrets.RELEASE_PLEASE_PRIVATE_KEY }}
54+
organization: ${{ github.repository_owner }}
4855
- uses: googleapis/release-please-action@v3
4956
id: release
5057
with:
5158
default-branch: main
52-
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
59+
token: ${{ steps.get_token.outputs.token }}
5360
release-type: simple
5461
package-name: ${{ matrix.package }}
5562
version-file: ${{ matrix.package }}/version.txt

0 commit comments

Comments
 (0)