From 32d24468fa63e3e19d67f5e59cf7b48f8b29ec57 Mon Sep 17 00:00:00 2001 From: jstan-isch <52019536+jstan-isch@users.noreply.github.com> Date: Sat, 28 Jan 2023 08:59:28 -0600 Subject: [PATCH] Update dist-2.yml --- .github/workflows/dist-2.yml | 54 +++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dist-2.yml b/.github/workflows/dist-2.yml index 03bb3eeb3..9f67a9108 100644 --- a/.github/workflows/dist-2.yml +++ b/.github/workflows/dist-2.yml @@ -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"}'