From 2141a6e9a5cf2f55306986d132e16b484ebb89fc Mon Sep 17 00:00:00 2001 From: agent Date: Mon, 14 Sep 2026 13:22:53 -0400 Subject: [PATCH] fix(ci): resolve conflict markers left in scripts/publish-release.sh The file reached main with an unresolved stash conflict at the auth_json helper (line 24) and the asset-upload curl (line 133). Both publish jobs run it directly, so every release/android-release publish dies with "line 24: syntax error near unexpected token <<<". Keep the HTTP Basic auth_json with the CR strip, and the single-line -X POST -u asset upload. --- scripts/publish-release.sh | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/publish-release.sh b/scripts/publish-release.sh index bfbbfa1..b5d075e 100755 --- a/scripts/publish-release.sh +++ b/scripts/publish-release.sh @@ -21,11 +21,7 @@ api_curl() { } auth_json() { -<<<<<<< Updated upstream - api_curl -u "sirius:${FORGEJO_TOKEN}" -H "Content-Type: application/json" "$@" -======= api_curl -u "sirius:${FORGEJO_TOKEN}" -H "Content-Type: application/json" "$@" | sed 's/\r$//' ->>>>>>> Stashed changes } tag="${1:?usage: publish-release.sh ...}" @@ -130,12 +126,7 @@ for a in json.load(sys.stdin): fi done up=$(api_curl -o /tmp/release-asset.json -w '%{http_code}' \ -<<<<<<< Updated upstream - -X POST "$api/releases/$rid/assets?name=$asset" \ - -u "sirius:${FORGEJO_TOKEN}" \ -======= -X POST -u "sirius:${FORGEJO_TOKEN}" "$api/releases/$rid/assets?name=$asset" \ ->>>>>>> Stashed changes -F "attachment=@$f") if [ "$up" != "201" ]; then die_http "upload $asset" "$up" /tmp/release-asset.json