From a27c86b0454be04a5df17366cd8914aca39ad61f Mon Sep 17 00:00:00 2001 From: William Diakite Date: Wed, 1 Nov 2023 10:02:48 -0400 Subject: [PATCH] fix dispatch --- .github/workflows/dispatch.yml | 14 ++++++++++++++ dispatch.yml | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/dispatch.yml delete mode 100644 dispatch.yml diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml new file mode 100644 index 0000000..7e2fab8 --- /dev/null +++ b/.github/workflows/dispatch.yml @@ -0,0 +1,14 @@ +name: Dispatch workflow event +on: [workflow_dispatch] +jobs: + dispatch_event: + runs-on: ubuntu-latest + steps: + - name: Post dispatch + run: | + curl -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.CLIENT_WEBHOOK_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/ouvroir/website/actions/workflows/deploy.yml/dispatches \ + -d '{"ref":"main"}' diff --git a/dispatch.yml b/dispatch.yml deleted file mode 100644 index 7305fc4..0000000 --- a/dispatch.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Dispatch workflow event -on: [workflow_dispatch] -job: - dispatch_event: - runs-on: ubuntu-latest - steps: - name: Post dispatch - run: | - curl -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/repos/ouvroir/website/actions/workflows/deploy.yml/dispatches \ - -d '{"ref":"main"}'