From 13f18cd1f22faa562e9f64eaf5589d6bf7f46efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Le=C3=A3o?= Date: Sun, 28 Jul 2024 18:38:02 -0300 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..3077e5e --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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-Admin/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"'" }}'