-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
curzolapierre
commented
Mar 14, 2024
- Add a changelog entry in the section "To Be Released" of CHANGELOG.md
01d603c
to
b6fd3cd
Compare
.github/workflows/publish.yml
Outdated
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') }} |
There was a problem hiding this comment.
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
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') }} |
There was a problem hiding this comment.
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.
# 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: thanks, nice explanation!
b6fd3cd
to
2cd76af
Compare
2cd76af
to
0305868
Compare
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: thanks, nice explanation!