forked from UnBTV/UnB-TV-VideoService
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1a7176
commit e989488
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Trigger Fork Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
trigger-workflow: | ||
runs-on: ubuntu-latest | ||
environment: actions | ||
|
||
steps: | ||
- name: Trigger workflow in forked repo | ||
run: | | ||
curl -X POST https://api.github.com/repos/victorleaoo/2024.1-UnB-TV-VideoService/dispatches \ | ||
-H 'Accept: application/vnd.github.everest-preview+json' \ | ||
-H 'Authorization: token ${{ secrets.API_TOKEN_GITHUB }}' \ | ||
--data '{"event_type": "Trigger Workflow", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}' |