#3: Create a release in Gitea #5
+3
-5
@@ -20,9 +20,7 @@ runs:
|
|||||||
- id: create-release
|
- id: create-release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
RESPONSE=$(curl -X POST \
|
RESPONSE=$(curl -X POST -H "Authorization: token ${ACTI_BOT_TOKEN}" -H "Content-Type: application/json" \
|
||||||
-H "Authorization: token ${ACTI_BOT_TOKEN}" \
|
-d "{\"draft\": false, \"prerelease\": false, \"tag_name\": \"${{ inputs.version }}\", \"name\": \"${{ inputs.name }}\"}" \
|
||||||
-H "Content-Type: application/json" \
|
${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases)
|
||||||
-d "{\"draft\": false, \"prerelease\": false, \"tag_name\": \"${{ inputs.version }}\", \"name\": \"${{ inputs.name }}\"}") \
|
|
||||||
"${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases"
|
|
||||||
echo "id=$(echo "$RESPONSE" | jq -r .id)" >> "$GITEA_OUTPUT"
|
echo "id=$(echo "$RESPONSE" | jq -r .id)" >> "$GITEA_OUTPUT"
|
||||||
Reference in New Issue
Block a user