mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Update testing_flow.yml
This commit is contained in:
parent
b55f8f3d17
commit
c8638411a7
1 changed files with 17 additions and 7 deletions
24
.github/workflows/testing_flow.yml
vendored
24
.github/workflows/testing_flow.yml
vendored
|
@ -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"}'
|
||||||
|
|
Loading…
Reference in a new issue