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

Only start workflows on pushes to master #224

Merged
merged 1 commit into from
Feb 21, 2022

Conversation

ItsDrike
Copy link
Member

Since we're treating other branches as feature branches, there's no reason to run workflows on them up until they're in a PR. GitHub does limit the amount of concurrent workflows which we can run and having these workflows run on both pull request and push on any branch can mean that if that PR is made from a local feature branch, we're running the checks twice for no reason (once on push to local branch, and once on PR).

To avoid this, this PR changes this behavior and only runs the workflows on pull requests, or to pushes to master branch, bot not to any other branch.

There's no reason to run workflows on pushes to other branches, these
branches will have to go through a PR to get into master at which
points, the workflows will be ran. (Even if they wouldn't go through a
PR, push on master would mean running the workflow).

Since we're treating other branches as feature branches, there's no
reason to run workflows on them up until they're in a PR
@ItsDrike ItsDrike added area: CI Related to continuous intergration and deployment status: needs review Author is waiting for someone to review and approve type: enhancement Improvement to an existing feature labels Feb 21, 2022
@kevinkjt2000 kevinkjt2000 merged commit 0f6d0d2 into master Feb 21, 2022
@kevinkjt2000 kevinkjt2000 deleted the only-run-on-master-push branch February 21, 2022 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CI Related to continuous intergration and deployment status: needs review Author is waiting for someone to review and approve type: enhancement Improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants