Skip to content
Commit f573fa11 authored by Simon Ser's avatar Simon Ser Committed by Daniel Stone
Browse files

ci: don't run pipelines in forks

Currently our CI setup has a downside: for each push on a merge
request, two pipelines are triggered. The first is triggered in
the context of the forked repository, and the second is triggered
in the context of the MR in the parent repository.

Replace the workflow rules with the ones in the official docs [1],
so that a branch pipeline isn't triggered when a MR exists for that
branch.

[1]: https://docs.gitlab.com/ee/ci/yaml/workflow.html#switch-between-branch-pipelines-and-merge-request-pipelines



Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Fixes: fbf7fc35 ("ci: use detached CI pipelines")
parent c5b47dc9
Loading
Loading
Loading
Pipeline #1173444 passed with stages
in 1 minute and 7 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment