salesforcecli / github-workflows

reusable shared CI scripts
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

Collect info on error #109

Closed iowillhoit closed 3 months ago

iowillhoit commented 3 months ago

Github Actions sets -e on the shell by default making it exit immediately on an error. shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}

This prevented us from getting useful error information from an oclif command in GHA. Temporarily setting +e allows us to get the error json to parse later.

Example of this working: https://github.com/iowillhoit/gha-sandbox/actions/runs/9406451924/job/25909919754

[skip-validate-pr]