Skip to content

Commit 44200b7

Browse files
committed
Debugging GH Action. Git user.name and user.email should not be global. GIT_USER_NAME and GIT_USER_EMAIL should be set as secrets
1 parent 2c212bc commit 44200b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
./gradlew snapshotVersion -Pversion="${NEXT_VERSION}"
5555
- name: Push next version snapshot
5656
run: |
57-
git config --global user.name 'Github Action'
58-
git config --global user.email '[email protected]'
57+
git config user.name "$GIT_USER_NAME"
58+
git config user.email "$GIT_USER_EMAIL"
5959
git commit -am "Bumped snapshot version"
6060
git push
6161
- name: Export Gradle Properties
@@ -70,8 +70,8 @@ jobs:
7070
BRANCH: gh-pages
7171
FOLDER: build/docs
7272
DOC_FOLDER: latest
73-
COMMIT_EMAIL: [email protected]
74-
COMMIT_NAME: Søren Berg Glasius
73+
COMMIT_EMAIL: ${{ secrets.GIT_USER_EMAIL }}
74+
COMMIT_NAME: ${{ secrets.GIT_USER_NAME }}
7575
VERSION: ${{ steps.get_version.outputs.version-without-v }}
7676
- name: Run post-release
7777
if: success()

0 commit comments

Comments
 (0)