Skip to content

How to run an action (here: "deploying" through sftp) only when needed? #25978

Discussion options

You must be logged in to vote

Well. Indeed, it was VERY simple. Hours spent finding this… 😞
I just needed to add this line in the yml file, before the action:

if: "contains(toJSON(github.event.commits.*.message), '[somekeyword]')"

Hope that will help someone else.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant