Skip to content

Commit 4d71113

Browse files
committed
[ci] publish-release: use PMD GitHub Actions Helper
1 parent 92a29a9 commit 4d71113

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,18 @@ jobs:
118118
END_LINE=$((END_LINE - 1))
119119
RELEASE_BODY="$(head -$END_LINE CHANGELOG.md | tail -$((END_LINE - BEGIN_LINE)))"
120120
echo "$RELEASE_BODY" > release_notes.md
121+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e #v2.0.6
122+
id: pmd-actions-helper-app-token
123+
with:
124+
app-id: ${{ secrets.PMD_ACTIONS_HELPER_ID }}
125+
private-key: ${{ secrets.PMD_ACTIONS_HELPER_PRIVATE_KEY }}
126+
owner: pmd
127+
repositories: pmd
128+
permission-contents: write # create a release
121129
- name: Create Release
122130
env:
123131
# Token required for GH CLI:
124-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132+
GH_TOKEN: ${{ steps.pmd-actions-helper-app-token.outputs.token }}
125133
TAG_NAME: ${{ github.event.workflow_run.head_branch }}
126134
VERSION: ${{ needs.check-version.outputs.VERSION }}
127135
run: |

0 commit comments

Comments
 (0)