Skip to content

Commit

Permalink
Merge pull request #290 from nxtrace/main
Browse files Browse the repository at this point in the history
feat: 添加触发 deb 仓库的推送
  • Loading branch information
tsosunchia authored Feb 3, 2025
2 parents f774c0d + 5cd2962 commit a179608
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 a179608

Please sign in to comment.