Closed sidvishnoi closed 2 years ago
https://docs.github.com/en/actions/creating-actions/setting-exit-codes-for-actions makes it sound like the script is returning 0
... and since the last line of each runs
step is an echo
command, that seems right?
As per line 5 of output in description, the process exited with code 1.
I think it might require manual use of if
in each step to check previous step failure. IIRC, this started coming up when GitHub actions started supporting if
in composite actions. I'll have to find some time to investigate.
Looking at sourcecode of setFailed, it's same as what we do but in different order.
since the last line of each runs step is an echo command, that seems right?
Hmm. Maybe. If yes, then a set -e
in each step should stop step immediately.
Update: No. The action is running step with set -e
already:
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
When a step fails, the action still tries to run later steps. It should exit right away.
Ref: https://github.com/w3c/spec-prod/issues/116