Skip to content

Commit 3342c88

Browse files
committed
Rely on the auth setup by checkout
Signed-off-by: Andrea Frittoli <[email protected]>
1 parent 7f61f4b commit 3342c88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
JAVA_DISTRO: 'zulu'
1414
USER_EMAIL: '[email protected]'
1515
USER_NAME: 'CDEvents Bot'
16-
USER_ID: 'oauth2'
16+
USER_ID: 'cdevents-bot'
1717

1818
jobs:
1919
release:
@@ -53,7 +53,6 @@ jobs:
5353
git config --global user.email "${{ env.USER_EMAIL }}"
5454
git config --global user.name "${{ env.USER_NAME }}"
5555
git commit -a -m "Releasing version $VERSION"
56-
git remote set-url origin https://${{ env.USER_ID }}:${{ secrets.GH_BOT_TOKEN }}@github.com/${{ github.repository }}.git
5756
git push
5857
5958
- name: Release
@@ -65,5 +64,5 @@ jobs:
6564
GPG_TTY=$(tty)
6665
export GPG_TTY
6766
./mvnw --no-transfer-progress -B --file pom.xml \
68-
-Drepository.url=https://${{ env.USER_ID }}:${{ secrets.GH_BOT_TOKEN }}@github.com/${{ github.repository }}.git \
67+
-Drepository.url=https://${{ env.USER_ID }}:${{ secrets.GH_BOT_TOKEN }}@github.com/${{ github.repository }} \
6968
-Dmaven.site.skip=true -Drelease=true deploy

0 commit comments

Comments
 (0)