diff --git a/.github/workflows/triggerDebRepo.yml b/.github/workflows/triggerDebRepo.yml new file mode 100644 index 0000000..db42df5 --- /dev/null +++ b/.github/workflows/triggerDebRepo.yml @@ -0,0 +1,15 @@ +name: Trigger Deb Repo +on: + release: + types: [published] +jobs: + trigger-deb-repo: + runs-on: ubuntu-latest + steps: + - env: + GITHUB_TOKEN: ${{ secrets.GT_Token }} # 操作 deb 仓库的 PAT + run: | + curl -X POST -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github+json" \ + https://api.github.com/repos/nxtrace/nexttrace-debs/actions/workflows/build.yaml/dispatches \ + -d '{"ref": "main", "inputs": {"tag": "${{ github.event.release.tag_name }}"}}'