Try to dispatch workflow run in other repo

This commit is contained in:
Jason2866 2023-05-22 11:04:03 +02:00 committed by GitHub
parent a39d1eee0e
commit 749f55283b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,3 +324,9 @@ jobs:
destination_branch: 'action-development'
user_email: 'github-actions@github.com'
user_name: 'github-actions'
- name: Dispatch worflow in Jason2866/Tasmota-firmware
run: |
curl -X POST https://api.github.com/repos/Jason2866/Tasmota-firmware/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.API_TOKEN_GITHUB }} \
--data '{"event_type": "Trigger Workflow", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'