From d6314b8e238e2471fd91f1b749e45086a8c778b4 Mon Sep 17 00:00:00 2001 From: gqt <3217233537@qq.com> Date: Sun, 8 Feb 2026 13:22:18 +0800 Subject: [PATCH] ci: auto-link package to repo via API after push --- .gitea/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f10a91d..5236a6d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,3 +19,9 @@ jobs: - name: Push Docker Image run: docker push gitea.chatgqt.top/gqt/test-ci:latest + + - name: Link Package to Repository + run: | + curl -s -X POST \ + -u "${{ gitea.actor }}:${{ secrets.REGISTRY_TOKEN }}" \ + "https://gitea.chatgqt.top/api/v1/packages/gqt/container/test-ci/-/link/test-ci"