ci(release): authenticate Forgejo API with HTTP Basic
Bearer is rejected on this instance (403/1010). Use sirius + token, matching the dispatch path that actually works.
This commit is contained in:
parent
10d81964a5
commit
dc52df2366
3 changed files with 11 additions and 11 deletions
|
|
@ -124,7 +124,7 @@ jobs:
|
|||
join=0
|
||||
if [ -n "${FORGEJO_TOKEN:-}" ]; then
|
||||
http=$(curl -sS --http1.1 -o /tmp/latest-rel.json -w '%{http_code}' \
|
||||
-H "Authorization: Bearer $FORGEJO_TOKEN" \
|
||||
-u "sirius:${FORGEJO_TOKEN}" \
|
||||
"$REPO_API/releases/tags/$latest" || true)
|
||||
if [ "$http" != "200" ]; then
|
||||
join=1
|
||||
|
|
@ -427,7 +427,7 @@ jobs:
|
|||
i=0
|
||||
while [ "$i" -lt 6 ]; do
|
||||
code=$(curl -sS --http1.1 -o /tmp/tag.json -w '%{http_code}' \
|
||||
-H "Authorization: Bearer ${FORGEJO_TOKEN}" \
|
||||
-u "sirius:${FORGEJO_TOKEN}" \
|
||||
"$REPO_API/tags/$TAG" || true)
|
||||
if [ "$code" = "200" ]; then
|
||||
tag_exists=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue