Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit d5336a4

Browse files
Merge pull request #70 from seamapi/feat/status-on-completion
feat: send status to connect on workflow trigger
2 parents 2f82da6 + aae209d commit d5336a4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ jobs:
3030
CONTAINER_REGISTRY: "ghcr.io"
3131
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
3232
steps:
33+
- uses: Sibz/github-status-action@v1
34+
if: ${{ github.event.inputs.connectSha }}
35+
with:
36+
authToken: ${{ secrets.BOT_GH_TOKEN }}
37+
context: Test Python SDK
38+
state: pending
39+
sha: ${{ github.event.inputs.connectSha }}
40+
repository: seam-connect
41+
target_url: ${{ env.RUN_URL }}
42+
3343
- name: Checkout
3444
uses: actions/checkout@v2
3545
with:
@@ -80,3 +90,13 @@ jobs:
8090
GITHUB_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
8191
message: |
8292
✅ [Python SDK tests passed](${{ env.RUN_URL }}).
93+
94+
- name: Send back status
95+
uses: Sibz/github-status-action@v1
96+
if: ${{ github.event.inputs.connectSha && always() }}
97+
with:
98+
authToken: ${{ secrets.BOT_GH_TOKEN }}
99+
context: Test Python SDK
100+
state: ${{ job.status }}
101+
sha: ${{ github.event.inputs.connectSha }}
102+
repository: seam-connect

0 commit comments

Comments
 (0)