From c246f3597c3c64772980a82c2407e4236ee34e15 Mon Sep 17 00:00:00 2001 From: Avior Date: Mon, 26 Apr 2021 12:31:08 +0200 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 8e03be101..1a473fc9b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,8 +28,9 @@ jobs: if: ${{ github.event_name == 'push' }} runs-on: ubuntu-latest steps: - - name: CUrl to the compiler - run: | - curl -XPOST -H 'Accept: application/vnd.github.everest-preview+json' -H "Authorization: Bearer $PAC" -d '{"event_type": "webhook"}' 'https://api.github.com/repos/tcgdex/compiler/dispatches' - env: - PAC: ${{ secrets.PAC }} + - name: Compiler Dispatch + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.PAC }} + repository: tcgdex/compiler + event-type: my-event