Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
victorleaoo authored Jul 28, 2024
1 parent c1a7176 commit e989488
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
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"'" }}'

0 comments on commit e989488

Please sign in to comment.