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

DevOps: only run Slack notification if tests failed #819

Merged
merged 1 commit into from
Jun 7, 2022
Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jun 7, 2022

The workflow was recently adapted to correct the action being marked as
successful even when the tests failed. This was done by removing the
continue-on-error option, which ignores the error. To still have the
Slack option run on error, the if: always() condition was added. This
works in the case of an error, but it also made that the step would
always run, even when the tests pass just fine. The solution is to keep
the explicit check on the exit status of the install and tests steps.

The workflow was recently adapted to correct the action being marked as
successful even when the tests failed. This was done by removing the
`continue-on-error` option, which ignores the error. To still have the
Slack option run on error, the `if: always()` condition was added. This
works in the case of an error, but it also made that the step would
always run, even when the tests pass just fine. The solution is to keep
the explicit check on the exit status of the install and tests steps.
@sphuber sphuber merged commit 5be0815 into develop Jun 7, 2022
@sphuber sphuber deleted the fix/nightly branch June 7, 2022 09:38
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.

1 participant