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