mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Update dist-2.yml
This commit is contained in:
parent
6e629db75c
commit
32d24468fa
1 changed files with 34 additions and 20 deletions
54
.github/workflows/dist-2.yml
vendored
54
.github/workflows/dist-2.yml
vendored
|
@ -21,28 +21,42 @@ jobs:
|
|||
- run: echo "This is the payload ref ${{ github.event.client_payload.ref }}"
|
||||
- run: echo "sha from first run sha ${{ github.sha }}"
|
||||
- run: echo "client payload sha ${{ github.event.client_payload.sha }}"
|
||||
|
||||
#- run: echo ${{ github.event.client_payload.test }}
|
||||
#- run: echo ${{ github.event.client_payload.sha }}
|
||||
#- run: echo ${{ github.event.client_payload.test }}
|
||||
- run: |
|
||||
curl --request POST \
|
||||
--url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
|
||||
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
|
||||
--header 'content-type: application/json' \
|
||||
--data '{
|
||||
"context": "Staging Tests",
|
||||
"state": "success",
|
||||
"description": "Staging tests passed",
|
||||
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||
}'
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||
-H "Authorization: Bearer ${{ secrets.MY_PAT }}" \
|
||||
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
|
||||
-d '{
|
||||
"name": "myEvent",
|
||||
"head_sha": "${{ github.event.client_payload.sha }}",
|
||||
"status": "completed",
|
||||
"conclusion": "success"}'
|
||||
-d '{"name":"myEvent","head_sha":"${{ github.event.client_payload.sha }}","status":"completed", "conclusion":"success", "details_url":"https://github.com/jstan-isch/spring-petclinic/runs/{id}"}'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# #- run: echo ${{ github.event.client_payload.test }}
|
||||
# #- run: echo ${{ github.event.client_payload.sha }}
|
||||
# #- run: echo ${{ github.event.client_payload.test }}
|
||||
# - run: |
|
||||
# curl --request POST \
|
||||
# --url https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
|
||||
# --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
|
||||
# --header 'content-type: application/json' \
|
||||
# --data '{
|
||||
# "context": "Staging Tests",
|
||||
# "state": "success",
|
||||
# "description": "Staging tests passed",
|
||||
# "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
||||
# }'
|
||||
# curl \
|
||||
# -X POST \
|
||||
# -H "Accept: application/vnd.github+json" \
|
||||
# -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||
# https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
|
||||
# -d '{
|
||||
# "name": "myEvent",
|
||||
# "head_sha": "${{ github.event.client_payload.sha }}",
|
||||
# "status": "completed",
|
||||
# "conclusion": "success"}'
|
||||
|
|
Loading…
Reference in a new issue