ci: treat HTTP 400 (already linked) as expected on the package-link step

This commit is contained in:
2026-09-21 20:39:10 +02:00
parent b93217cc51
commit b8b8ee6284
2 changed files with 2 additions and 15 deletions
+2 -2
View File
@@ -107,6 +107,6 @@ jobs:
ENCODED_NAME=$(printf '%s' "${{ steps.version.outputs.package_name }}" | sed 's#/#%2F#g')
STATUS=$(curl -s -o /dev/null -w "%{http_code}" -u "haylan:${{ secrets.RELEASE_TOKEN }}" -X POST "https://git.arthurerlich.de/api/v1/packages/haylan/composer/${ENCODED_NAME}/-/link/AeonDumpManager")
echo "link status: $STATUS"
if [ "$STATUS" != "201" ]; then
echo "::warning::Failed to link the Composer package to this repository (HTTP $STATUS) - not fatal, release already published"
if [ "$STATUS" != "201" ] && [ "$STATUS" != "400" ]; then
echo "::warning::Unexpected status linking the Composer package to this repository (HTTP $STATUS) - not fatal, release already published"
fi