Update dist-2.yml

This commit is contained in:
jstan-isch 2023-01-28 08:59:28 -06:00 committed by GitHub
parent 6e629db75c
commit 32d24468fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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