Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect info on error #109

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Collect info on error #109

merged 1 commit into from
Jun 6, 2024

Conversation

iowillhoit
Copy link
Contributor

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]

@mshanemc mshanemc merged commit b00710b into main Jun 6, 2024
2 checks passed
@iowillhoit iowillhoit deleted the ew/e branch June 7, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants