From c8638411a7eabcb05145aa2b698d9dd53fd04868 Mon Sep 17 00:00:00 2001 From: jstan-isch <52019536+jstan-isch@users.noreply.github.com> Date: Wed, 25 Jan 2023 11:51:47 -0600 Subject: [PATCH] Update testing_flow.yml --- .github/workflows/testing_flow.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/testing_flow.yml b/.github/workflows/testing_flow.yml index f473522ed..8aeab3552 100644 --- a/.github/workflows/testing_flow.yml +++ b/.github/workflows/testing_flow.yml @@ -19,7 +19,7 @@ jobs: - name: Create a file run: | touch file8.txt - echo "added dummy file 2" > file8.txt + echo "added dummy file 6" > file8.txt - name: commit and push run: | @@ -28,10 +28,20 @@ jobs: git add . git commit -m "generated" git push - + - 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: Bearer ${{ secrets.MY_PAT }}" \ + -H "Accept: application/vnd.github+json" \ + "https://api.github.com/repos/${{ github.repository }}/dispatches" \ + -d '{ + "event_type": "Success", + "client_payload": {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}}' + +# - 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"}'