Skip to content

Commit 5b7a1a7

Browse files
committed
ci: github: Propage test status
Relate-to: https://github.com/actions/github-script Relate-to: https://octokit.github.io/rest.js/v21/#repos Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 6b552d4 commit 5b7a1a7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on: # yamllint disable-line rule:truthy
1111
workflows: ["build"]
1212
types:
1313
- completed
14+
1415
jobs:
1516
test:
1617
env:
@@ -67,3 +68,14 @@ jobs:
6768
cd z-wave-stack-binaries/bin && file -E *_x86_REALTIME.elf && cd -
6869
export ZPC_ARGS="--log.level=d"
6970
./scripts/tests/z-wave-stack-binaries-test.sh
71+
72+
- name: Set custom status
73+
uses: actions/github-script@v7
74+
with:
75+
script: |
76+
await github.rest.repos.createCommitStatus({
77+
owner: context.repo.owner,
78+
repo: context.repo.repo,
79+
sha: context.sha,
80+
state: 'success',
81+
})

0 commit comments

Comments
 (0)