Skip to content

Commit c7e309b

Browse files
authored
fix(workflow): configure git user for release workflow (#7)
- Added global configuration for user.email and user.name in the release.yml workflow: - Uses ${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com for the email. - Sets ${GITHUB_ACTOR} as the user name. - Ensures that Git commands like tagging and pushing operate without user identity issues in the release process. This update prevents potential failures due to missing Git user configuration during workflow execution.
1 parent 655c477 commit c7e309b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
env:
2121
RELEASE_VERSION: ${{ inputs.releaseVersion }}
2222
run: |
23+
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
24+
git config --global user.name "${GITHUB_ACTOR}"
2325
git tag -a "${RELEASE_VERSION}" -m "Release ${RELEASE_VERSION}"
2426
git push origin "${RELEASE_VERSION}"
2527
gh release create "${RELEASE_VERSION}" \

0 commit comments

Comments
 (0)