From 5cd2962a2bac559d3f17724f55d806b7b3c0010f Mon Sep 17 00:00:00 2001 From: wcbing Date: Mon, 3 Feb 2025 19:29:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=A7=A6=E5=8F=91=20?= =?UTF-8?q?deb=20=E4=BB=93=E5=BA=93=E7=9A=84=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tsosunchia <59512455+tsosunchia@users.noreply.github.com> --- .github/workflows/triggerDebRepo.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/triggerDebRepo.yml diff --git a/.github/workflows/triggerDebRepo.yml b/.github/workflows/triggerDebRepo.yml new file mode 100644 index 00000000..db42df54 --- /dev/null +++ b/.github/workflows/triggerDebRepo.yml @@ -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 }}"}}'