Workflow not running on push #24943
-
I’m setting up two workflows. One is supposed to run when I push to any branch other than main and the pushed code modifies something in the frontend subdirectory. Similarly, the other is supposed to run when I push to any branch other than main and the code modifies something in the backend subdirectory. The .yml file for the frontend workflow looks like this:
I’ve tried testing this by creating a .txt file in the frontend directory and pushing the new file to a branch called test_github_actions, but the push did not trigger my workflow. I’ve been iterating on my workflow file for a while, and I’ve found and corrected (I think) a couple of errors, but I’ve gotten stuck here. Is there an obvious issue with my .yml file? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think you’re just excluding
|
Beta Was this translation helpful? Give feedback.
-
It looks like you were right! Thank you! |
Beta Was this translation helpful? Give feedback.
I think you’re just excluding
main
, without specifying that the workflow should run on other branches. Try this: