mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-11-28 07:35:37 +00:00
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
25 lines
692 B
YAML
25 lines
692 B
YAML
name: Trigger Deb Repo
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.release.id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
release:
|
|
types: [published, prereleased]
|
|
|
|
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 }}"}}'
|