From b55f8f3d175c7f2717b303fe831da1f3b99729ac Mon Sep 17 00:00:00 2001 From: jstan-isch <52019536+jstan-isch@users.noreply.github.com> Date: Wed, 25 Jan 2023 11:43:55 -0600 Subject: [PATCH] Update dist-1.yml --- .github/workflows/dist-1.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dist-1.yml b/.github/workflows/dist-1.yml index 298b0c831..0099e36be 100644 --- a/.github/workflows/dist-1.yml +++ b/.github/workflows/dist-1.yml @@ -10,8 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v1 - with: - token: ${{ secrets.MY_PAT }} - event-type: my-event - client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}' + run: | + curl \ + -H "Authorization: token :token" \ + -H "Accept: application/vnd.github+json" \ + "https://api.github.com/repos/:user/:repo/dispatches" \ + -d '{ + "event_type": "awesomeness", + "client_payload": {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}}' + +# uses: peter-evans/repository-dispatch@v1 +# with: +# token: ${{ secrets.MY_PAT }} +# event-type: my-event +# client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}'