Skip to content

Commit

Permalink
Merge pull request #45 from idkbrowby/anand/repo-dispatch-action
Browse files Browse the repository at this point in the history
repo-dispatch action
  • Loading branch information
vivekashok1221 authored Sep 14, 2023
2 parents 358811c + bea5e48 commit 704994b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,18 @@ jobs:
WATCHTOWER_TOKEN: ${{ secrets.WATCHTOWER_TOKEN }}
run: |
curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" https://watchtower.lnkshrt.xyz/v1/update
trigger_frontend_action:
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Trigger repository_dispatch event on gamingrealm-frontend
env:
GITHUB_PAT: ${{ secrets.GH_PAT }}
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_PAT" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/idkbrowby/gamingrealm-frontend/dispatches \
-d '{"event_type":"on-backend-deploy", "client_payload": {}}'

0 comments on commit 704994b

Please sign in to comment.