Skip to content

Commit

Permalink
feat: 添加触发 deb 仓库的推送
Browse files Browse the repository at this point in the history
Signed-off-by: tsosunchia <[email protected]>
  • Loading branch information
wcbing authored and tsosunchia committed Feb 3, 2025
1 parent f774c0d commit 5cd2962
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/triggerDebRepo.yml
Original file line number Diff line number Diff line change
@@ -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 }}"}}'

0 comments on commit 5cd2962

Please sign in to comment.