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

github: Run push actions on main and release branches only #12415

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

roosterfish
Copy link
Contributor

If dependabot creates new PRs, those are not originating from a fork. Instead a new branch is created in the same repository which triggers on both push and pull_request.

Limiting the push trigger to the main and release branches doesn't anymore duplicate the jobs for dependabot PRs.

Check here for reference: #12376

@tomponline
Copy link
Member

@roosterfish please can you also open PRs against microcloud, lxd (main and stable-5.0 branches) and their associated "-pkg-snap" repos too for this. Thanks

@tomponline
Copy link
Member

@roosterfish although this doesn't seem to be running the code tests? hrm

If dependabot creates new PRs, those are not originating from a fork.
Instead a new branch is created in the same repository which triggers
on both `push` and `pull_request`.

Limiting the push trigger to the main and release branches doesn't
anymore duplicate the jobs for dependabot PRs.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@roosterfish
Copy link
Contributor Author

@tomponline accidentally used the wrong syntax. I'll add a PR for the others now.

@tomponline tomponline merged commit f303ff3 into canonical:main Oct 19, 2023
25 checks passed
@roosterfish roosterfish deleted the actions_push branch October 19, 2023 08:36
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

Successfully merging this pull request may close these issues.

2 participants