I have the following step defined
- name: Multiline Test id: multiline run: | echo 'MULTILINE_OUTPUT<<EOF' >> $GITHUB_ENV a-command-that-can-fail >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV continue-on-error: true
In this case,
a-command-that-can-fail may or may not throw an exit code. I’d like the workflow to continue executing and display the command error. However, it appears that if
a-command-that-can-fail throws an exit code, the step stops executing the rest of the run. Therefore,
echo 'EOF' >> $GITHUB_ENV never runs and I can not access the output.
Is there a recommended way to handle this?