We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c5997 commit 0126f1dCopy full SHA for 0126f1d
.github/workflows/test.yml
@@ -106,16 +106,19 @@ jobs:
106
- name: Propagate status on fail
107
# yamllint disable-line rule:line-length
108
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
109
- if: failure()
+ if: always()
110
env:
111
status: ${{ steps.run.outcome }}
112
sha: ${{ github.event.workflow_run.head_commit.id }}
113
with:
114
script: |
115
+ if (process.env.status != 'success') {
116
await github.rest.repos.createCommitStatus({
117
owner: context.repo.owner,
118
repo: context.repo.repo,
119
sha: process.env.sha,
120
state: 'failure'
121
})
122
core.setFailed(`Status: ${process.env.status}`);
123
+ process.exit(1);
124
+ }
0 commit comments