ci: link published Composer packages to this repository #11

Merged
haylan merged 4 commits from ci/link-package-fix into main 2026-09-21 18:40:29 +00:00
2 changed files with 2 additions and 15 deletions
Showing only changes of commit b8b8ee6284 - Show all commits
+2 -2
View File
@@ -107,6 +107,6 @@ jobs:
ENCODED_NAME=$(printf '%s' "${{ steps.version.outputs.package_name }}" | sed 's#/#%2F#g') 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") 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" echo "link status: $STATUS"
if [ "$STATUS" != "201" ]; then if [ "$STATUS" != "201" ] && [ "$STATUS" != "400" ]; then
echo "::warning::Failed to link the Composer package to this repository (HTTP $STATUS) - not fatal, release already published" echo "::warning::Unexpected status linking the Composer package to this repository (HTTP $STATUS) - not fatal, release already published"
fi fi
-13
View File
@@ -1,13 +0,0 @@
name: test-link
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Test link endpoint with RELEASE_TOKEN
run: |
STATUS=$(curl -s -o /tmp/out.log -w "%{http_code}" -u "haylan:${{ secrets.RELEASE_TOKEN }}" -X POST "https://git.arthurerlich.de/api/v1/packages/haylan/composer/aeon%2Fdump-manager/-/link/AeonDumpManager")
echo "status: $STATUS"
cat /tmp/out.log