Apply `if` in a serious of commands

If you see the code in the screenshot below, you can see that if condition repeats multiple times with the same string steps.folder-change.outputs.changed == 'true'. Is there any way where we can apply the same if statement for a serious of commands?

1 Like

if condition could applied to a job or a step, but in your scenario, you need if in steps. I am sorry to tell you that your requirement could not be reached. I would encourage you to share your idea in the Feedback form for GitHub Actions