From 90b52816c1450bf41a6e7b56cff7de05492dd7a9 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Wed, 1 Oct 2025 22:05:51 +0200 Subject: [PATCH] fix(ci): update changelog workflow2 --- .gitea/scripts/update-changelog.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/scripts/update-changelog.sh b/.gitea/scripts/update-changelog.sh index 61825a2..ea7a942 100755 --- a/.gitea/scripts/update-changelog.sh +++ b/.gitea/scripts/update-changelog.sh @@ -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