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 - name: Create a file
run: | run: |
touch file8.txt touch file8.txt
echo "added dummy file 2" > file8.txt echo "added dummy file 6" > file8.txt
- name: commit and push - name: commit and push
run: | run: |
@ -28,10 +28,20 @@ jobs:
git add . git add .
git commit -m "generated" git commit -m "generated"
git push git push
- name: Repository Dispatch - name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1 run: |
with: curl \
token: ${{ secrets.MY_PAT }} -H "Authorization: Bearer ${{ secrets.MY_PAT }}" \
event-type: my-event -H "Accept: application/vnd.github+json" \
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}' "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"}'