chore(ci): remove redundant ${{ ... }} in if statements in workflows - #4517
Closed
programmer04 wants to merge 1 commit into
Closed
programmer04 wants to merge 1 commit into
programmer04 wants to merge 1 commit into
Conversation
programmer04
enabled auto-merge (squash)
August 16, 2023 09:29
programmer04
force-pushed
the
rm-redundant-parentheses
branch
from
August 16, 2023 09:54
1740506 to
b6770b6
Compare
randmonkey
reviewed
Aug 16, 2023
randmonkey
left a comment
Contributor
There was a problem hiding this comment.
Are all the remaining ${{ }} s are necessary?
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4517 +/- ##
=======================================
- Coverage 67.7% 67.7% -0.1%
=======================================
Files 161 161
Lines 18845 18845
=======================================
- Hits 12769 12761 -8
- Misses 5315 5326 +11
+ Partials 761 758 -3 ☔ View full report in Codecov by Sentry. |
Member
Author
|
I think so @randmonkey only in |
programmer04
marked this pull request as draft
August 16, 2023 11:02
auto-merge was automatically disabled
August 16, 2023 11:02
Pull request was converted to draft
Member
|
@programmer04 Are we still working on this 🤔 ? |
Member
Author
|
I put it on hold @pmalek because I discovered a quick that I wanted to clarify github/docs#27497. Now knowing that I lean towards putting |
Member
Author
|
Since omitting doesn't work always (see official docs) I'm not longer advocating for adjusting it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
When you use expressions in an if conditional, you may omit the
${{ ... }}expression syntax because GitHub Actions automatically evaluates theifconditional as an expression. Read more. I found a corner case where such omit is not applicable, e.g.kubernetes-ingress-controller/.github/workflows/_e2e_tests.yaml
Line 81 in b6770b6
read more here.
Issue created in GH docs github/docs#27497