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.
This commit is contained in:
2026-07-12 00:16:14 +09:00
parent 02c7bdaeda
commit b7591fb381
+4 -5
View File
@@ -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: