@@ -34,14 +34,15 @@ jobs:
3434 SEAM_CONNECT_IMAGE : ghcr.io/seamapi/seam-connect:${{ github.event.inputs.connectSha || 'latest' }}
3535 RUN_URL : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
3636 steps :
37- - if : ${{ github.event.inputs.prNumber }}
38- uses : marocchino/sticky-pull-request-comment@v2
37+ - uses : Sibz/ github-status-action@v1
38+ if : ${{ github.event.inputs.connectSha }}
3939 with :
40- number : ${{ github.event.inputs.prNumber }}
41- repo : ${{ github.event.inputs.prRepo }}
42- GITHUB_TOKEN : ${{ secrets.BOT_GH_TOKEN }}
43- message : |
44- ⌛️ [running Javascript SDK tests](${{ env.RUN_URL }})...
40+ authToken : ${{ secrets.BOT_GH_TOKEN }}
41+ context : Test Javascript SDK
42+ state : pending
43+ sha : ${{ github.event.inputs.connectSha }}
44+ repository : seam-connect
45+ target_url : ${{ env.RUN_URL }}
4546
4647 - name : Checkout
4748 uses : actions/checkout@v2
@@ -66,25 +67,15 @@ jobs:
6667
6768 - run : yarn install --frozen-lockfile
6869 - run : yarn test -T 2m
70+ id : test
6971 env :
7072 SEAM_CONNECT_IMAGE : ${{ env.SEAM_CONNECT_IMAGE }}
7173
72- - name : Comment on failure
73- if : ${{ github.event.inputs.prNumber && failure() }}
74- uses : marocchino/sticky-pull-request-comment@v2
74+ - uses : Sibz/github-status-action@v1
75+ if : ${{ github.event.inputs.connectSha }}
7576 with :
76- number : ${{ github.event.inputs.prNumber }}
77- repo : ${{ github.event.inputs.prRepo }}
78- GITHUB_TOKEN : ${{ secrets.BOT_GH_TOKEN }}
79- message : |
80- ⛔️ [Javascript SDK tests failed](${{ env.RUN_URL }}).
81-
82- - name : Comment on success
83- if : ${{ github.event.inputs.prNumber && success() }}
84- uses : marocchino/sticky-pull-request-comment@v2
85- with :
86- number : ${{ github.event.inputs.prNumber }}
87- repo : ${{ github.event.inputs.prRepo }}
88- GITHUB_TOKEN : ${{ secrets.BOT_GH_TOKEN }}
89- message : |
90- ✅ [Javascript SDK tests passed](${{ env.RUN_URL }}).
77+ authToken : ${{ secrets.BOT_GH_TOKEN }}
78+ context : Test Javascript SDK
79+ state : ${{ job.status }}
80+ sha : ${{ github.event.inputs.connectSha }}
81+ repository : seam-connect
0 commit comments