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:
103
103
# yamllint enable rule:line-length
104
104
continue-on-error : true
105
105
106
- - name : Propagate run status to commit status
106
+ - name : Propagate status on fail
107
107
# yamllint disable-line rule:line-length
108
108
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
109
- if : always ()
109
+ if : failure ()
110
110
env :
111
111
status : ${{ steps.run.outcome }}
112
112
sha : ${{ github.event.workflow_run.head_commit.id }}
@@ -116,6 +116,6 @@ jobs:
116
116
owner: context.repo.owner,
117
117
repo: context.repo.repo,
118
118
sha: process.env.sha,
119
- state: process.env.status
119
+ state: 'failure'
120
120
})
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