gitlab-ci: Use rules: instead of except:/only: for test-docs job
Only run the job automatically for Marge Bot, otherwise let it be triggered manually. v2: * Never run this job for the main project, since it's only needed in pre-merge pipelines. * Add comment explaining that cases not covered by explicit rules default to "when: never". Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5469>
This commit is contained in:
parent
196ac4c6f3
commit
1c612e8c09
|
@ -47,13 +47,17 @@ pages:
|
||||||
test-docs:
|
test-docs:
|
||||||
extends: .docs-base
|
extends: .docs-base
|
||||||
stage: container+docs
|
stage: container+docs
|
||||||
except:
|
rules:
|
||||||
refs:
|
- if: '$CI_PROJECT_NAMESPACE == "mesa"'
|
||||||
- master@mesa/mesa
|
when: never
|
||||||
only:
|
- if: '$GITLAB_USER_LOGIN == "marge-bot"'
|
||||||
changes:
|
changes: &docs-or-ci
|
||||||
- docs/**/*
|
- docs/**/*
|
||||||
- .gitlab-ci.yml
|
- .gitlab-ci.yml
|
||||||
|
when: on_success
|
||||||
|
- changes: *docs-or-ci
|
||||||
|
when: manual
|
||||||
|
# Other cases default to never
|
||||||
|
|
||||||
# When to automatically run the CI
|
# When to automatically run the CI
|
||||||
.ci-run-policy:
|
.ci-run-policy:
|
||||||
|
|
Loading…
Reference in New Issue