2026-09-28 04:18:09 +03:00
|
|
|
name: create a release
|
|
|
|
|
description: create gitea release (creating tag or for existing one)
|
|
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
|
name:
|
|
|
|
|
description: release name
|
|
|
|
|
required: true
|
2026-09-28 14:27:05 +03:00
|
|
|
notes:
|
|
|
|
|
description: release notes
|
|
|
|
|
required: false
|
|
|
|
|
default: ""
|
2026-09-28 04:18:09 +03:00
|
|
|
version:
|
|
|
|
|
description: release version
|
|
|
|
|
required: true
|
|
|
|
|
|
|
|
|
|
outputs:
|
|
|
|
|
release_id:
|
|
|
|
|
description: release id if created successfully
|
|
|
|
|
value: ${{ steps.create-release.outputs.id }}
|
|
|
|
|
|
|
|
|
|
runs:
|
|
|
|
|
using: composite
|
|
|
|
|
steps:
|
|
|
|
|
- id: create-release
|
|
|
|
|
shell: bash
|
|
|
|
|
run: |
|
2026-09-28 14:29:32 +03:00
|
|
|
RESPONSE=$(curl --fail-with-body -X POST -H "Authorization: token ${ACTI_BOT_TOKEN}" -H "Content-Type: application/json" \
|
2026-09-28 14:27:05 +03:00
|
|
|
-d "{\"draft\": false, \"prerelease\": false, \"body\": \"${{ inputs.body }}\", \"tag_name\": \"${{ inputs.version }}\", \"name\": \"${{ inputs.name }}\"}" \
|
2026-09-28 14:01:12 +03:00
|
|
|
${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases)
|
2026-09-28 14:27:05 +03:00
|
|
|
echo "id=$(echo "$RESPONSE" | jq -r .id)" >> "$GITEA_OUTPUT"
|