ci: Fix cerbero trigger rules for file changes

"if changes... never" will NOT create the pipeline if *any* of the
changes are in these files, which is not what we want. Flip the logic,
so that the pipeline is created when any Rust file is changed, or
Cargo.toml/Cargo.lock is changed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2121>
This commit is contained in:
Nirbheek Chauhan 2025-03-05 22:57:06 +05:30 committed by GStreamer Marge Bot
parent 64b6661548
commit 66b3857bc4

View file

@ -436,21 +436,11 @@ cerbero trigger:
# Never run post merge
- if: '$CI_PROJECT_NAMESPACE == "gstreamer"'
when: never
# Don't run if the only changes are files that cargo-c does not read
- if:
changes:
- "CHANGELOG.md"
- "README.md"
- "deny.toml"
- "rustfmt.toml"
- "typos.toml"
- "*.py"
- "*.sh"
- "Makefile"
- "meson.build"
- "meson_options.txt"
- "**/meson.build"
- "ci/*.sh"
- "ci/*.py"
when: never
- when: always
- changes:
paths:
- ".gitlab-ci.yml"
- "Cargo.toml"
- "Cargo.lock"
- "**/Cargo.toml"
- "**/*.rs"
- "**/*.c"