Skip to content

Commit

Permalink
ci(release-wkflow): fix unknown git user before tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
codejedi365 committed Oct 8, 2024
1 parent 9354cd6 commit 1f598cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
if: steps.release.outputs.released == 'true' && steps.release.outputs.is_prerelease == 'false'
env:
FULL_VERSION_TAG: ${{ steps.release.outputs.tag }}
GIT_COMMITTER_NAME: github-actions
GIT_COMMITTER_EMAIL: [email protected]
run: |
MINOR_VERSION_TAG="$(printf '%s\n' "$FULL_VERSION_TAG" | cut -d. -f1,2)"
git tag --force --annotate "$MINOR_VERSION_TAG" "${FULL_VERSION_TAG}^{}" -m "$MINOR_VERSION_TAG"
Expand All @@ -80,6 +82,8 @@ jobs:
if: steps.release.outputs.released == 'true' && steps.release.outputs.is_prerelease == 'false'
env:
FULL_VERSION_TAG: ${{ steps.release.outputs.tag }}
GIT_COMMITTER_NAME: github-actions
GIT_COMMITTER_EMAIL: [email protected]
run: |
MAJOR_VERSION_TAG="$(printf '%s\n' "$FULL_VERSION_TAG" | cut -d. -f1)"
git tag --force --annotate "$MAJOR_VERSION_TAG" "${FULL_VERSION_TAG}^{}" -m "$MAJOR_VERSION_TAG"
Expand Down

0 comments on commit 1f598cc

Please sign in to comment.