Skip to content

Commit 119e965

Browse files
committed
Add personal access token to release workflow
1 parent 0a969da commit 119e965

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v6
9+
with:
10+
token: ${{ secrets.RELEASE_PAT }}
11+
persist-credentials: true
912
- uses: actions/setup-java@v5
1013
with:
1114
java-version: '17'
@@ -22,7 +25,7 @@ jobs:
2225
- id: version
2326
run: |
2427
VERSION=$( mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout )
25-
echo "::set-output name=version::${VERSION%-SNAPSHOT}"
28+
echo "version=${VERSION%-SNAPSHOT}" >> "$GITHUB_OUTPUT"
2629
- run: mvn -B release:prepare release:perform
2730
env:
2831
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
@@ -33,4 +36,4 @@ jobs:
3336
version: ${{ steps.version.outputs.version }}
3437
publish: true
3538
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)