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

Always publish logs and test results #452

Conversation

martincostello
Copy link
Member

Always try to publish build logs and test results, even if the build itself fails (#417 (comment)).

Always try to publish build logs and test results, even if the build itself fails.
@@ -60,6 +60,7 @@ jobs:

- name: Publish logs
uses: actions/upload-artifact@v1
if: ${{ always() }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. What does that mean for the actions that execute after a step decorated with if: ${{ always() }}? Do they execute even if the first step - but not the previous one - failed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It just applies to the specific step you decorate. The default if you don't specify anything is that it calls success(): docs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Thanks 👏

@martincostello martincostello merged commit 5484c55 into aspnet-contrib:dev Jul 7, 2020
@martincostello martincostello deleted the Always-Try-To-Upload-Logs-And-Tests branch July 7, 2020 16:42
@martincostello martincostello added this to the 3.1.2 milestone Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants