From d2589601f3bc28f2d62ab285653b37d6a867bf61 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Fri, 19 Jan 2024 17:50:52 +0100 Subject: [PATCH] use more advanced filters to better cull unrelated files and clean up filters --- .github/workflows/push.yaml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index d81c8492d..c0a6db058 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -21,33 +21,24 @@ jobs: - 'gitbutler-ui/**' - 'package.json' - 'pnpm-lock.yaml' - rust: - - 'gitbutler-*/**' - - '!gitbutler-ui/**' + common-rust: &rust - 'Cargo.lock' - 'Cargo.toml' - 'rust-toolchain.toml' + rust: &any-rust + - *rust + - 'gitbutler-!(ui)/**' gitbutler-app: - - 'gitbutler-*/**' - - '!gitbutler-ui/**' - - 'Cargo.lock' - - 'Cargo.toml' - - 'rust-toolchain.toml' + - *any-rust gitbutler-core: + - *rust - 'gitbutler-core/**' - - 'Cargo.lock' - - 'Cargo.toml' - - 'rust-toolchain.toml' gitbutler-git: + - *rust - 'gitbutler-git/**' - - 'Cargo.lock' - - 'Cargo.toml' - - 'rust-toolchain.toml' gitbutler-diff: + - *rust - 'gitbutler-diff/**' - - 'Cargo.lock' - - 'Cargo.toml' - - 'rust-toolchain.toml' lint-node: needs: changes