Show a mirror failure, and link the release's own range
CI / check (push) Canceled after 0s

This commit is contained in:
2026-10-23 06:54:06 +01:00
parent 5af2f0362a
commit 796c53716f
4 changed files with 93 additions and 5 deletions
+3
View File
@@ -208,6 +208,9 @@ else
if [ -n "${response_file:-}" ]; then
rm -f "$response_file"
fi
if [ "$api_status" = "403" ]; then
fail "Gitea answered HTTP 403: the token's user cannot write to $REPO_SLUG. The tags and $BRANCH still push over SSH, but creating a release needs the token's user to be a writer (write or admin) on the repository. Check it with: curl -s -H \"Authorization: token \$GITEA_TOKEN\" $API_URL/repos/$REPO_SLUG | grep -o '\"permissions\":{[^}]*}'"
fi
fail "Gitea answered HTTP $api_status for the release."
;;
esac