feat: 添加触发 deb 仓库的推送

Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com>
This commit is contained in:
wcbing
2025-02-03 19:29:33 +08:00
committed by tsosunchia
parent f774c0d29f
commit 5cd2962a2b

15
.github/workflows/triggerDebRepo.yml vendored Normal file
View File

@@ -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 }}"}}'