Merge branch 'feat/wallet-create-import' into wt/t_69ce8e46
All checks were successful
ci / test (pull_request) Successful in 3m56s
ci / sdk (pull_request) Successful in 57s

This commit is contained in:
sirius 2026-09-15 00:06:12 +00:00
commit 3f62734efd

View file

@ -21,11 +21,7 @@ api_curl() {
} }
auth_json() { 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$//' 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>...}" tag="${1:?usage: publish-release.sh <tag> <name> <body-file> <asset>...}"
@ -130,12 +126,7 @@ for a in json.load(sys.stdin):
fi fi
done done
up=$(api_curl -o /tmp/release-asset.json -w '%{http_code}' \ 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" \ -X POST -u "sirius:${FORGEJO_TOKEN}" "$api/releases/$rid/assets?name=$asset" \
>>>>>>> Stashed changes
-F "attachment=@$f") -F "attachment=@$f")
if [ "$up" != "201" ]; then if [ "$up" != "201" ]; then
die_http "upload $asset" "$up" /tmp/release-asset.json die_http "upload $asset" "$up" /tmp/release-asset.json