Skip to content

Commit

Permalink
Kdw503 patch 1 (#244)
Browse files Browse the repository at this point in the history
* Update TriggerTagBot.yml

* Update TriggerTagBot.yml
  • Loading branch information
kdw503 authored Jan 30, 2025
1 parent 8108aa6 commit 1b34d67
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/TriggerTagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -18,7 +19,9 @@ jobs:
echo "::set-output name=packagename::$PACKAGENAME"
- name: Run `repository_dispatch` on updated repo, to trigger tagbot
run: |
curl -X POST https://api.github.com/repos/HolyLab/${{ steps.pkg.outputs.packagename }}.jl/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.TAGBOT_PAT }} \
--data '{"event_type": "TriggerTagBot_${{ steps.pkg.outputs.packagename }}", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
curl -L -X POST
-H "Accept: application/vnd.github+json" \
-H "Authorization: ${{ secrets.TAGBOT_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/HolyLab/${{ steps.pkg.outputs.packagename }}.jl/dispatches \
-d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true}}'

0 comments on commit 1b34d67

Please sign in to comment.