How to run an action (here: "deploying" through sftp) only when needed? #25978
-
Hi everyone! (TL;DR at the bottom) I’m new to git and gitHub; sorry if my issue sounds newbiesque!
Now, my issue is this:
I’ve looked for actions that can achieve something like this on GitHub marketplace, googled for tutorials, with no avail… TL;DR: The goal is to run an action (in this case: “deploying” through sftp) only when needed. How to run this action on a custom event? Or, if using a specific branch, how to automatically keep that branch in synch with the “main” one? Thanks a lot. 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well. Indeed, it was VERY simple. Hours spent finding this… 😞
Hope that will help someone else. |
Beta Was this translation helpful? Give feedback.
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.