mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 08:20:12 +01:00
ci: fix rustfmt job rules
Specifically,fe8bc3f23emade the "default" case `manual` instead of `never`, which is causing all staging pipelines to have that job regardless of any file `changes`, and always `manual` making it block pipelines. Let's make it automatic for upstream pipelines (ie. staging and push-to-main), and only run on file `changes`. Fixes:fe8bc3f23e("ci: Only run rustfmt when necessary") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36260>
This commit is contained in:
parent
8434109b0c
commit
f065c2f0ac
1 changed files with 3 additions and 0 deletions
|
|
@ -228,6 +228,9 @@
|
|||
- if: *is-merge-request
|
||||
when: never
|
||||
# non-pre-merge: run but only advisory
|
||||
- if: $CI_PROJECT_NAMESPACE == "mesa"
|
||||
changes: *rustfmt_files
|
||||
allow_failure: true
|
||||
- when: manual
|
||||
allow_failure: true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue