File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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}` );
You can’t perform that action at this time.
0 commit comments