Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple main.yml files #414

Open
viveknath3222 opened this issue Sep 6, 2023 · 1 comment
Open

Multiple main.yml files #414

viveknath3222 opened this issue Sep 6, 2023 · 1 comment

Comments

@viveknath3222
Copy link

Use Case:

I've multiple branches -

  1. Development - On my local I made changes to code and push to development branch and its not connected to any server.

  2. Staging - This branch needs to connect to a staging server. When all the testing is done I'll merge development branch to staging branch.

  3. Main - This branch needs to connect to main server. When all the testing is done I'll merge staging branch to main branch.

Is this posible?

@Trainax
Copy link
Contributor

Trainax commented Sep 6, 2023

Yes, it is possible. Try taking a look at this page which explains the workflow syntax.

I think you will be able to do what you want by using the

on:
  push:
    branches:
      - branch_name

filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants