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"}'