gitea-actions/gitea-tag/action.yml
Cal Corum 7e458f30f6 Add shared composite actions: calver, gitea-tag, discord-notify
Centralizes duplicated CI/CD steps from Paper Dynasty, Major Domo,
and Vagabond workflows into reusable composite actions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 11:41:36 -06:00

39 lines
1.1 KiB
YAML

# Gitea Tag Creator
# Creates a git tag via the Gitea API (avoids branch protection issues)
name: Create Gitea Tag
description: Create a git tag via the Gitea API
inputs:
version:
description: Tag name / version string
required: true
token:
description: Gitea API token (usually github.token)
required: true
server_url:
description: Gitea server URL
required: false
default: ${{ github.server_url }}
repository:
description: Repository path (owner/repo)
required: false
default: ${{ github.repository }}
sha:
description: Commit SHA to tag
required: false
default: ${{ github.sha }}
runs:
using: composite
steps:
- name: Create tag via Gitea API
shell: bash
run: |
curl -s -X POST \
-H "Authorization: token ${{ inputs.token }}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${{ inputs.version }}\", \"target\": \"${{ inputs.sha }}\", \"name\": \"${{ inputs.version }}\"}" \
"${{ inputs.server_url }}/api/v1/repos/${{ inputs.repository }}/tags"
echo "Created tag ${{ inputs.version }}"