Skip to content

Commit c67bca5

Browse files
authored
set git config (#48)
1 parent 0002f43 commit c67bca5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
jobs:
66
release_maven_package:
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
810
steps:
911
- name: Validate branch
1012
if: ${{ github.ref != 'refs/heads/master' }}
@@ -23,9 +25,15 @@ jobs:
2325
server-username: ${{ secrets.OSSRH_USERNAME }}
2426
server-password: ${{ secrets.OSSRH_PASSWORD }}
2527

28+
- name: Configure git config
29+
run: |
30+
git config --global user.name 'Gary Bot 2'
31+
git config --global user.email '[email protected]'
32+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
33+
2634
- name: Maven release
2735
run: |
28-
mvn \
36+
mvn \
2937
-e \
3038
-B \
3139
-P release \

0 commit comments

Comments
 (0)