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

Limit duplicate builds #168

Merged
merged 2 commits into from
Aug 17, 2022
Merged

Conversation

ThrawnCA
Copy link
Collaborator

Don't force an extra GitHub Actions workflow execution on pull request unless the target branch is 'master'.

This will reduce the number of duplicate executions (since we already trigger on 'push'), while still ensuring that cross-repo pull requests to 'master' will be tested.

Since GitHub Actions workflows are triggered on every push,
triggering on pull request is usually redundant.
The exception is when pull requests are opened across repositories.
However, it should be sufficient to trigger a build on pull request
if the target branch is 'master'. This will ensure that changes
can't be merged into the master branch without being tested first,
but will not always trigger extra builds for pull requests internal
to a repo.
@pdelboca
Copy link
Member

Thanks @ThrawnCA !

@pdelboca pdelboca merged commit 0ee3416 into ckan:master Aug 17, 2022
@duttonw duttonw deleted the limit-duplicate-builds branch November 10, 2023 05:46
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.

None yet

2 participants