Describe the bug
Running shell script is not compatible with way github actions shell script is invoked.
For example when running bash shell script on linux
The script executed as follows:
bash --noprofile --norc -eo pipefail {0}
This code script to fail on first error.
On retry action multi line script might have errors but if the last line succeed step wouldn't retry and error ignored.
Expected behavior
Keep behavior of default github action
Documentation on github action behavior: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell