Skip to content

Commit 1b34d67

Browse files
authored
Kdw503 patch 1 (#244)
* Update TriggerTagBot.yml * Update TriggerTagBot.yml
1 parent 8108aa6 commit 1b34d67

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/TriggerTagBot.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
workflow_dispatch:
78
jobs:
89
test:
910
runs-on: ubuntu-latest
@@ -18,7 +19,9 @@ jobs:
1819
echo "::set-output name=packagename::$PACKAGENAME"
1920
- name: Run `repository_dispatch` on updated repo, to trigger tagbot
2021
run: |
21-
curl -X POST https://api.github.com/repos/HolyLab/${{ steps.pkg.outputs.packagename }}.jl/dispatches \
22-
-H 'Accept: application/vnd.github.everest-preview+json' \
23-
-u ${{ secrets.TAGBOT_PAT }} \
24-
--data '{"event_type": "TriggerTagBot_${{ steps.pkg.outputs.packagename }}", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
22+
curl -L -X POST
23+
-H "Accept: application/vnd.github+json" \
24+
-H "Authorization: ${{ secrets.TAGBOT_PAT }}" \
25+
-H "X-GitHub-Api-Version: 2022-11-28" \
26+
https://api.github.com/repos/HolyLab/${{ steps.pkg.outputs.packagename }}.jl/dispatches \
27+
-d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true}}'

0 commit comments

Comments
 (0)