Files
NTrace-core/.github/workflows/triggerDebRepo.yml
T
tsosunchiaandCopilot Autofix powered by AI ec98511b63 Potential fix for code scanning alert no. 8: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-08-25 19:35:46 +08:00

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