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

[tech] Github Actions runners - Fix publish on crates.io (2) #874

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

ArnaudOggy
Copy link
Contributor

No description provided.

Comment on lines +99 to 103
if: always() &&
(github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/master')) &&
(needs.rustfmt.result == 'skipped' || needs.rustfmt.result == 'success') &&
(needs.clippy.result == 'skipped' || needs.clippy.result == 'success') &&
(needs.tests.result == 'skipped' || needs.tests.result == 'success')
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe be you don't need some of the rest in this case?

Suggested change
if: always() &&
(github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/master')) &&
(needs.rustfmt.result == 'skipped' || needs.rustfmt.result == 'success') &&
(needs.clippy.result == 'skipped' || needs.clippy.result == 'success') &&
(needs.tests.result == 'skipped' || needs.tests.result == 'success')
if: always() &&
(github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/master'))

Copy link
Contributor Author

@ArnaudOggy ArnaudOggy Dec 1, 2022

Choose a reason for hiding this comment

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

Nop... failure case possible, and catched like that (but not explicitly)

@ArnaudOggy ArnaudOggy merged commit 491e9f0 into master Dec 1, 2022
@ArnaudOggy ArnaudOggy deleted the fix_push_cratesio_v2 branch December 1, 2022 16:57
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.

None yet

3 participants