Skip to content

Commit

Permalink
uses github token
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDiakite committed Nov 1, 2023
1 parent a27c86b commit 8f226e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Dispatch workflow event
on: [workflow_dispatch]
on: [workflow_dispatch, push]
jobs:
dispatch_event:
runs-on: ubuntu-latest
Expand All @@ -8,7 +8,7 @@ jobs:
run: |
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CLIENT_WEBHOOK_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ouvroir/website/actions/workflows/deploy.yml/dispatches \
-d '{"ref":"main"}'

0 comments on commit 8f226e7

Please sign in to comment.