ci: define the version before building the release body
version / print-version (push) Successful in 15s

This commit is contained in:
BlackAngelTV committed 2026-11-20 08:52:00 +01:00
1 parent d921e38baa
commit 01217ef040
1 file changed
+3 -2
+3 -2
View File
@@ -62,7 +62,8 @@ jobs:
run: |
set -euo pipefail
api="$GITHUB_SERVER_URL/api/v1/repos/$GITHUB_REPOSITORY"
tag="v${{ steps.version.outputs.version }}"
version='${{ steps.version.outputs.version }}'
tag="v$version"
name="${{ steps.package.outputs.name }}"
file="${{ steps.package.outputs.file }}"
auth="Authorization: token $GITEA_TOKEN"
@@ -73,7 +74,7 @@ jobs:
Arch package: \`$name\`"
release_id="$(curl -sS --fail-with-body -X POST -H "$auth" -H 'Content-Type: application/json' \
-d "$(jq -n --arg tag "$tag" --arg name "FWS-DeskManager ${{ steps.version.outputs.version }}" \
-d "$(jq -n --arg tag "$tag" --arg name "FWS-DeskManager $version" \
--arg body "$body" '{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')" \
"$api/releases" | jq -r '.id')"
fi