Skip to content

Commit 553acd3

Browse files
committed
[ci] Use pmd-actions-helper-app to create a release
1 parent 809fb90 commit 553acd3

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
@@ -116,10 +116,18 @@ jobs:
116116
gem build pmdtester.gemspec
117117
gempkgfile="$(echo pmdtester-*.gem)"
118118
gem push "${gempkgfile}"
119+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e #v2.0.6
120+
id: pmd-actions-helper-app-token
121+
with:
122+
app-id: ${{ secrets.PMD_ACTIONS_HELPER_ID }}
123+
private-key: ${{ secrets.PMD_ACTIONS_HELPER_PRIVATE_KEY }}
124+
owner: pmd
125+
repositories: pmd-regression-tester
126+
permission-contents: write # create a release
119127
- name: Create GitHub Release
120128
env:
121129
# Token required for GH CLI:
122-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
130+
GH_TOKEN: ${{ steps.pmd-actions-helper-app-token.outputs.token }}
123131
TAG_NAME: ${{ github.event.workflow_run.head_branch }}
124132
VERSION: ${{ needs.check-version.outputs.VERSION }}
125133
run: |

0 commit comments

Comments
 (0)