From 83a97235ae7fa7a4b94d80997791f96627a119b7 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Mon, 7 Apr 2025 16:05:05 +0200 Subject: [PATCH] [ci] Fix pattern for code changes (#17275) ## Summary `**/*` only matches files in a subdirectory whereas `**` matches any file at an arbitrary depth > A trailing "/**" matches everything inside. For example, "abc/**" matches all files inside directory "abc", relative to the location of the .gitignore file, with infinite depth. > A leading "**" followed by a slash means match in all directories. For example, "**/foo" matches file or directory "foo" anywhere, the same as pattern "foo". "**/foo/bar" matches file or directory "bar" anywhere that is directly under directory "foo". --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f0f140d659..22ce2c0489 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -143,7 +143,7 @@ jobs: env: MERGE_BASE: ${{ steps.merge_base.outputs.sha }} run: | - if git diff --quiet "${MERGE_BASE}...HEAD" -- ':**/*' \ + if git diff --quiet "${MERGE_BASE}...HEAD" -- ':**' \ ':!**/*.md' \ ':crates/red_knot_python_semantic/resources/mdtest/**/*.md' \ ':!docs/**' \