ci: link new packages to the repository
publish / publish (push) Successful in 2m11s

This commit is contained in:
sam committed 2026-10-31 19:19:22 +11:00
1 parent 55ae2b6533
commit 312b6e10cc
1 file changed
+14
+14
View File
@@ -29,3 +29,17 @@ jobs:
env:
ARCHIPELAGO_CATALOGUE_KEY: ${{ secrets.ARCHIPELAGO_CATALOGUE_KEY }}
run: scripts/publish.sh git.catlow.cloud/sam/archipelago
# A Gitea package belongs to its owner, not a repository, so a new one
# is linked here; linking is per package, so this is a no-op once done.
- name: Link new packages to this repository
env:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
run: |
api=https://git.catlow.cloud/api/v1
auth="Authorization: token $DEPLOY_TOKEN"
for page in 1 2 3 4 5 6 7 8; do
curl -fsS -H "$auth" "$api/packages/sam?type=container&limit=50&page=$page" |
jq -r '.[] | select(.repository == null and (.name | startswith("archipelago/"))) | .name | @uri'
done | sort -u | while read -r name; do
curl -fsS -o /dev/null -X POST -H "$auth" "$api/packages/sam/container/$name/-/link/archipelago"
done