From fe8b270ab32c16077b5625066e0afbdd766a587f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 14 Nov 2025 12:44:26 +0800 Subject: [PATCH] Add workflow to trigger Docker publish on release Introduces a GitHub Actions workflow that triggers the NapCat-Docker docker-publish workflow when a release is published. This automates Docker image publishing upon new releases. --- .github/workflows/trigger-docker-publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/trigger-docker-publish.yml diff --git a/.github/workflows/trigger-docker-publish.yml b/.github/workflows/trigger-docker-publish.yml new file mode 100644 index 00000000..bdc1ca37 --- /dev/null +++ b/.github/workflows/trigger-docker-publish.yml @@ -0,0 +1,19 @@ +name: Trigger Docker Publish on Release + +on: + release: + types: [published] + +jobs: + shell-docker: + runs-on: ubuntu-latest + steps: + - name: Trigger NapCat-Docker docker-publish workflow + env: + GH_TOKEN: ${{ secrets.NAPCAT_BUILD }} + run: | + curl -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GH_TOKEN" \ + https://api.github.com/repos/NapNeko/NapCat-Docker/actions/workflows/docker-publish.yml/dispatches \ + -d '{"ref":"main"}'