-
I would like a GitHub action to kick off on a push or pull request to a specific branch or if it matches a path in any branch. So I wrote
But it only executes for pushes (or PRs presumably) to the “develop” branch. If I update |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Alas, it appears that the GitHub Actions
This works nicely, though it does mean that jobs are added and shown as skipped rather than omitted altogether, but at least it does avoid the overhead of running unnecessary tests. |
Beta Was this translation helpful? Give feedback.
-
Actually, it turns out this wasn’t working as I thought. It in fact needs to be:
Which means it must always run, even on the develop and main branches where it isn’t needed. I ended up abandoning this as overcomplicated in favor of a standard for branch naming:
Much simpler, and the branch just need to be named to match “Postgres”. And even if it doesn’t, it will run the tests once a pull request is made to develop. |
Beta Was this translation helpful? Give feedback.
Actually, it turns out this wasn’t working as I thought. It in fact needs to be:
Which means it must always run, even on…