Update testing_flow.yml

This commit is contained in:
jstan-isch 2023-01-25 11:51:47 -06:00 committed by GitHub
parent b55f8f3d17
commit c8638411a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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