mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 11:10:10 +01:00
ci: Fix up rules for post-merge / main project branch pipelines
Pre-merge pipelines for MRs appear to run in the target project namespace now, so we have to explicitly rule those out. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6481>
This commit is contained in:
parent
502b9daa7a
commit
45793c00d2
1 changed files with 2 additions and 2 deletions
|
|
@ -167,7 +167,7 @@ success:
|
||||||
- *ignore_scheduled_pipelines
|
- *ignore_scheduled_pipelines
|
||||||
# Run pipeline by default in the main project if any CI pipeline
|
# Run pipeline by default in the main project if any CI pipeline
|
||||||
# configuration files were changed, to ensure docker images are up to date
|
# configuration files were changed, to ensure docker images are up to date
|
||||||
- if: '$CI_PROJECT_PATH == "mesa/mesa"'
|
- if: '$CI_PROJECT_PATH == "mesa/mesa" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME'
|
||||||
changes:
|
changes:
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
- .gitlab-ci/**/*
|
- .gitlab-ci/**/*
|
||||||
|
|
@ -180,7 +180,7 @@ success:
|
||||||
when: on_success
|
when: on_success
|
||||||
# Run pipeline by default in the main project if it was not triggered by
|
# Run pipeline by default in the main project if it was not triggered by
|
||||||
# Marge Bot, and any files affecting the pipeline were changed
|
# Marge Bot, and any files affecting the pipeline were changed
|
||||||
- if: '$GITLAB_USER_LOGIN != "marge-bot" && $CI_PROJECT_PATH == "mesa/mesa"'
|
- if: '$GITLAB_USER_LOGIN != "marge-bot" && $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME != $CI_COMMIT_REF_NAME && $CI_PROJECT_PATH == "mesa/mesa"'
|
||||||
changes:
|
changes:
|
||||||
*all_paths
|
*all_paths
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue