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

build(ci): Remove if: always() conditions from workflows #29414

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Oct 19, 2021

I do not remember why this was added, but removing these because it is adding noise to our workflow annotations when a previous step fails. If our setup steps fails, these steps will always fail as well, so there is not point in attempting to run them.

@@ -102,7 +103,7 @@ jobs:
github-token: ${{ steps.token.outputs.token }}

- name: tsc
if: always() && steps.changes.outputs.frontend == 'true'
if: steps.dependencies.outcome == 'success' && steps.changes.outputs.frontend == 'true'
Copy link
Member Author

Choose a reason for hiding this comment

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

We want this to run regardless of results of eslint, but it does depend on yarn install being successful.

https://docs.github.com/en/actions/learn-github-actions/contexts#steps-context

@billyvg billyvg marked this pull request as ready for review October 19, 2021 19:08
@billyvg billyvg requested a review from a team as a code owner October 19, 2021 19:08
Copy link
Member

@joshuarli joshuarli left a comment

Choose a reason for hiding this comment

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

Dang, I don't really remember either.

I do not remember why this was added, but removing these because it is adding noise to our workflow annotations when a previous step fails. If our setup steps fails, these steps will always fail as well, so there is not point in attempting to run them.
@billyvg billyvg force-pushed the build/ci/remove-if-always-conditions branch from fb04f08 to 6c23277 Compare October 22, 2021 14:39
@billyvg billyvg merged commit d014d55 into master Oct 22, 2021
@billyvg billyvg deleted the build/ci/remove-if-always-conditions branch October 22, 2021 18:35
@github-actions github-actions bot locked and limited conversation to collaborators Nov 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants