Skip to content
Discussion options

You must be logged in to vote

You don’t need all the YAML files to be identical, but the conditions inside each workflow (like your if: check) must explicitly allow the branch you want to trigger from. Right now, master isn’t included anywhere, so those workflows will just skip.

If you want master to behave like the other branches, you’ll need to do two things:

  1. Add master to the on: trigger (for push, pull_request, or workflow_dispatch as needed).
  2. Update your if: condition to also check for master, or adjust the logic so it runs whenever you need it to.

The workflows don’t have to be identical across branches, but they do need to reference the branch you’re running from, otherwise nothing will happen.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Rod-at-DOH
Comment options

@suhanpahari
Comment options

Answer selected by Rod-at-DOH

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Configuration Topics about workflow files, YAML setup, job dependencies, and general workflow configuration issues Misc General discussions about GitHub Actions that don't fit other found themes.
3 participants