Skip to content

Commit

Permalink
fix(workflow): configure git user for release workflow (#7)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
warnyul authored Jan 3, 2025
1 parent 655c477 commit c7e309b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
env:
RELEASE_VERSION: ${{ inputs.releaseVersion }}
run: |
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "${GITHUB_ACTOR}"
git tag -a "${RELEASE_VERSION}" -m "Release ${RELEASE_VERSION}"
git push origin "${RELEASE_VERSION}"
gh release create "${RELEASE_VERSION}" \
Expand Down

0 comments on commit c7e309b

Please sign in to comment.