From 1f598cc61aa776a795a5812c1243237c479b239e Mon Sep 17 00:00:00 2001 From: codejedi365 Date: Mon, 7 Oct 2024 21:27:32 -0600 Subject: [PATCH] ci(release-wkflow): fix unknown git user before tag creation --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bf3c02..0c0d491 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: actions@users.noreply.github.com 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" @@ -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: actions@users.noreply.github.com 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"