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