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

fix(actions): test conditional needs #1051

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

curzolapierre
Copy link
Member

  • Add a changelog entry in the section "To Be Released" of CHANGELOG.md

@curzolapierre curzolapierre self-assigned this Mar 14, 2024
if: startsWith(github.ref, 'refs/tags/')
# related to https://github.com/actions/runner/issues/2205
# since a success() is added by default and skipped jobs make success to fail we need this workaround
if: ${{ always() && startsWith(github.ref, 'refs/tags/') && (needs.linter-master.result == 'success' || needs.linter-pull-request.result =='success') }}
Copy link
Member

Choose a reason for hiding this comment

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

question: do we really need the surrounding ${{ .. }}? From actions/runner#2205 (comment) it does not seem so
nitpick: you lack a space in both if

Suggested change
if: ${{ always() && startsWith(github.ref, 'refs/tags/') && (needs.linter-master.result == 'success' || needs.linter-pull-request.result =='success') }}
if: ${{ always() && startsWith(github.ref, 'refs/tags/') && (needs.linter-master.result == 'success' || needs.linter-pull-request.result == 'success') }}

Copy link
Member Author

Choose a reason for hiding this comment

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

The ${{ .. }} is needed in case of Yaml reserved character but indeed here it's not the case.

Comment on lines +75 to +80
# related to https://github.com/actions/runner/issues/2205
# since a success() is added by default and skipped jobs make success to fail we need this workaround
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: you explain what the workaround is, but not what the problem is. Hence it's kind of complicated to understand the problem in the first place. Could you explain it?

Copy link
Member

Choose a reason for hiding this comment

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

praise: thanks, nice explanation!

@curzolapierre curzolapierre marked this pull request as ready for review March 14, 2024 15:57
@curzolapierre curzolapierre requested a review from EtienneM March 14, 2024 15:57
@EtienneM EtienneM removed their request for review March 14, 2024 15:59
Comment on lines +75 to +80
# related to https://github.com/actions/runner/issues/2205
# since a success() is added by default and skipped jobs make success to fail we need this workaround
Copy link
Member

Choose a reason for hiding this comment

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

praise: thanks, nice explanation!

@curzolapierre curzolapierre merged commit ee63e0c into master Mar 14, 2024
6 checks passed
@curzolapierre curzolapierre deleted the fix/release_action branch March 14, 2024 16:48
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.

2 participants