mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
fix(ci): dispatch the mirror's build with the full ref (refs/tags/<tag>) and show the server's error
Sync git.upriser.nl mirror / sync (push) Skipped
Sync git.upriser.nl mirror / sync (push) Skipped
This commit is contained in:
1 parent
a0fcce57e8
commit
bc75c692c6
1 file changed
+3
-2
@@ -106,6 +106,7 @@ jobs:
|
||||
sleep 5
|
||||
done
|
||||
[ "$got" = "$want" ] || { echo "::error::the mirror does not have $ISO_TAG ($want) after 5 minutes"; exit 1; }
|
||||
curl -fsS --retry 3 --retry-all-errors -X POST -H "Authorization: token $GIT_UPRISER_TOKEN" -H "Content-Type: application/json" \
|
||||
-d "{\"ref\":\"$ISO_TAG\"}" "$api/actions/workflows/iso-2-gitea-build.yml/dispatches"
|
||||
# ref: the full name (refs/tags/...), as in Gitea's API documentation; --fail-with-body shows the server's reason.
|
||||
curl -sS --fail-with-body --retry 3 -X POST -H "Authorization: token $GIT_UPRISER_TOKEN" -H "Content-Type: application/json" \
|
||||
-d "{\"ref\":\"refs/tags/$ISO_TAG\"}" "$api/actions/workflows/iso-2-gitea-build.yml/dispatches"
|
||||
echo "Started the mirror's build for $ISO_TAG"
|
||||
Reference in new issue
Block a user