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.
This commit is contained in:
parent
8e97b12f73
commit
2141a6e9a5
1 changed files with 0 additions and 9 deletions
|
|
@ -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 <tag> <name> <body-file> <asset>...}"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue