From b7591fb381aabce2cd40f358f7c9074ee9e51904 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 12 Jul 2026 00:16:14 +0900 Subject: [PATCH] fix: Resolve git tag creation failure due to unset git identity Root cause found via SSH log analysis (actions_log/.../2324.log): 'git config user.name' returned exit code 1 (no global identity set in the Gitea Actions runner container), and since the step uses 'bash -e -o pipefail', the script aborted immediately at that line before ever reaching 'git tag'. Fix: explicitly set git user.name/user.email before tagging, and remove the fragile bare 'git config user.name' debug calls. Also removed the '|| echo ...continuing' fallback on git push so push failures are now visible as real failures instead of swallowed. --- .gitea/workflows/prepare-release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/prepare-release.yml b/.gitea/workflows/prepare-release.yml index c35d750d..73a63453 100644 --- a/.gitea/workflows/prepare-release.yml +++ b/.gitea/workflows/prepare-release.yml @@ -112,15 +112,14 @@ jobs: VERSION="${{ steps.metadata.outputs.version }}" COMMIT="${{ steps.metadata.outputs.commit }}" - echo "Git config:" - git config user.name - git config user.email + git config user.name "Gitea Actions" + git config user.email "actions@gitea.local" git tag -a "$VERSION" -m "Release $VERSION (commit: $COMMIT)" HEAD echo "✓ Local tag created: $VERSION" - git push origin "$VERSION" || echo "⚠️ Tag push failed, continuing..." - echo "✓ Tag creation complete" + git push origin "$VERSION" + echo "✓ Tag pushed: $VERSION" - name: Create Gitea Release env: