What problem are you trying to solve?
- Improve the readability of the workflows when multiple
if conditions are used
- Improve source control as single line changes are easier to reason about
What precondition(s) should be checked before applying this recipe?
The job uses multiple if conditions within a single line
Describe the situation before applying the recipe
if: ${{ !cancelled() && condition1 && condition2 && condition3 && condition4 && condition5 }}
Describe the situation after applying the recipe
if: ${{
!cancelled() &&
condition1 &&
condition2 &&
condition3 &&
condition4 &&
condition5 &&
}}
What problem are you trying to solve?
ifconditions are usedWhat precondition(s) should be checked before applying this recipe?
The job uses multiple
ifconditions within a single lineDescribe the situation before applying the recipe
Describe the situation after applying the recipe