Skip to content

Run CI once per push on pull requests, DEV-2280 - #1

Open
iranimij wants to merge 1 commit into
mainfrom
DEV-2280-run-ci-once-per-push
Open

iranimij wants to merge 1 commit into
mainfrom
DEV-2280-run-ci-once-per-push

Conversation

@iranimij

Copy link
Copy Markdown

Problem
All workflows used on: [push, pull_request], so every push to a branch with an open PR ran each workflow twice.

Change
push is limited to main; pull_request stays. A push to a PR branch runs each workflow once (pull_request), a merge to main runs once (push). Same change as already merged in the open source modules (pilot: module-cookiebot-m2).

Testing
On the pilot, opening the PR and a later push to it each created exactly one pull_request run per workflow and no push runs.

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.

1 participant