fix: Use Gitea API for tag creation instead of git push #16

Merged
cal merged 1 commits from fix/ci-tag-creation into main 2026-02-17 23:41:49 +00:00
Owner

Summary

  • Replace git push origin main --tags with Gitea REST API call (POST /api/v1/repos/{owner}/{repo}/tags)
  • Fixes tag creation failing on protected main branch (runner token lacks push permissions)
  • Removes unnecessary VERSION file commit since CalVer is derived from tags, not a file

Test plan

  • Merge this PR and verify the CI workflow creates a CalVer tag via the Gitea API
  • Confirm the tag appears in the repo's tag list on Gitea
  • Verify no pre-receive hook declined errors in the Actions run log

🤖 Generated with Claude Code

## Summary - Replace `git push origin main --tags` with Gitea REST API call (`POST /api/v1/repos/{owner}/{repo}/tags`) - Fixes tag creation failing on protected main branch (runner token lacks push permissions) - Removes unnecessary VERSION file commit since CalVer is derived from tags, not a file ## Test plan - [ ] Merge this PR and verify the CI workflow creates a CalVer tag via the Gitea API - [ ] Confirm the tag appears in the repo's tag list on Gitea - [ ] Verify no `pre-receive hook declined` errors in the Actions run log 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cal added 1 commit 2026-02-17 23:40:54 +00:00
fix: Use Gitea API for tag creation instead of git push
All checks were successful
Build Docker Image / build (pull_request) Successful in 46s
67f14daf7f
git push --tags fails on protected main branch since the runner's
token lacks push permissions. Switch to Gitea REST API call which
bypasses branch protection. Also removes unnecessary VERSION file
commit since CalVer is derived from tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cal merged commit 345fa7a96d into main 2026-02-17 23:41:49 +00:00
cal deleted branch fix/ci-tag-creation 2026-02-17 23:41:49 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cal/major-domo-database#16
No description provided.