From 8f226e708c1be48281a0c8b6fc9175bf6d4726e4 Mon Sep 17 00:00:00 2001 From: William Diakite Date: Wed, 1 Nov 2023 10:05:50 -0400 Subject: [PATCH] uses github token --- .github/workflows/dispatch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 7e2fab8..d06cd74 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -1,5 +1,5 @@ name: Dispatch workflow event -on: [workflow_dispatch] +on: [workflow_dispatch, push] jobs: dispatch_event: runs-on: ubuntu-latest @@ -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"}'