Skip to content

Commit 22c5997

Browse files
committed
feat(github): test: Propagate only failed status
Origin: SiliconLabsSoftware/z-wave-engine-application-layer#73 Relate-to: #100 (cherry picked from commit ad4212c4ca20e9af6a018652a5c4944ff091f7a2) Forwarded: #134 Signed-off-by: Philippe Coval <[email protected]>
1 parent d036cb0 commit 22c5997

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ jobs:
103103
# yamllint enable rule:line-length
104104
continue-on-error: true
105105

106-
- name: Propagate run status to commit status
106+
- name: Propagate status on fail
107107
# yamllint disable-line rule:line-length
108108
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
109-
if: always()
109+
if: failure()
110110
env:
111111
status: ${{ steps.run.outcome }}
112112
sha: ${{ github.event.workflow_run.head_commit.id }}
@@ -116,6 +116,6 @@ jobs:
116116
owner: context.repo.owner,
117117
repo: context.repo.repo,
118118
sha: process.env.sha,
119-
state: process.env.status
119+
state: 'failure'
120120
})
121-
process.exit(process.env.status == 'success' ? 0 : 1);
121+
core.setFailed(`Status: ${process.env.status}`);

0 commit comments

Comments
 (0)