fix(ci): update changelog workflow2
Some checks failed
Run Helm tests / Execute helm template (push) Successful in 10s
Run Helm tests / Execute helm lint (push) Successful in 17s
Run Helm tests / Execute helm unittest (push) Successful in 25s
Markdown linter / Execute npm run readme:lint (push) Successful in 9s
Markdown linter / Execute npm run readme:link (push) Successful in 35s
Markdown linter / Execute npm run readme:parameters (push) Successful in 8s
Update changelog / changelog (push) Failing after 13s

This commit is contained in:
2025-10-01 22:05:51 +02:00
parent 261288d0d5
commit 90b52816c1

View File

@@ -31,8 +31,8 @@ else
CURRENT_GITEA_TOKEN=$3
fi
if ! git sv rn -o changelog.md; then
echo "ERROR: Failed to generate changelog.md" 1>&2
if ! git sv rn -o /tmp/changelog.md; then
echo "ERROR: Failed to generate /tmp/changelog.md" 1>&2
exit 1
fi
@@ -52,7 +52,7 @@ if ! ISSUE_NUMBER="$(curl "${CURL_ARGS[@]}" "${CURRENT_GITEA_SERVER_URL}/api/v1/
fi
export ISSUE_NUMBER
if ! echo "" | jq --raw-input --slurp --arg title 'Changelog for upcoming version' --arg body "$(cat changelog.md)" '{title: $title, body: $body}' 1> /tmp/payload.json; then
if ! echo "" | jq --raw-input --slurp --arg title "Changelog for upcoming version" --arg body "$(cat /tmp/changelog.md)" '{title: $title, body: $body}' 1> /tmp/payload.json; then
echo "ERROR: Failed to create JSON payload file" 1>&2
exit 1
fi