Skip to content

Commit 9a8645d

Browse files
committed
Use an app token for triggering a release
We need to do this because using a default token will not recursively trigger a new workflow run.
1 parent cba5fb5 commit 9a8645d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/post-release-mergeback.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,18 @@ jobs:
162162
--assignee "${GITHUB_ACTOR}" \
163163
--draft
164164
165+
- name: Generate token
166+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69
167+
id: app-token
168+
with:
169+
app-id: ${{ vars.AUTOMATION_APP_ID }}
170+
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
171+
165172
- name: Create the GitHub release
166173
env:
167174
PARTIAL_CHANGELOG: "${{ runner.temp }}/partial_changelog.md"
168175
VERSION: "${{ steps.getVersion.outputs.version }}"
169-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
170177
run: |
171178
# Do not mark this release as latest. The most recent CLI release must be marked as latest.
172179
gh release create \

0 commit comments

Comments
 (0)