58
58
env :
59
59
MERGE_BASE : ${{ steps.merge_base.outputs.sha }}
60
60
run : |
61
- if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' ':Cargo.lock' ':crates/ruff_python_trivia/**' ':crates/ruff_source_file/**' ':crates/ruff_text_size/**' ':crates/ruff_python_ast/**' ':crates/ruff_python_parser/**' ':python/py-fuzzer/**' ':.github/workflows/ci.yaml'; then
61
+ if git diff --quiet "${MERGE_BASE}...HEAD" -- \
62
+ ':Cargo.toml' \
63
+ ':Cargo.lock' \
64
+ ':crates/ruff_python_trivia/**' \
65
+ ':crates/ruff_source_file/**' \
66
+ ':crates/ruff_text_size/**' \
67
+ ':crates/ruff_python_ast/**' \
68
+ ':crates/ruff_python_parser/**' \
69
+ ':python/py-fuzzer/**' \
70
+ ':.github/workflows/ci.yaml' \
71
+ ; then
62
72
echo "changed=false" >> "$GITHUB_OUTPUT"
63
73
else
64
74
echo "changed=true" >> "$GITHUB_OUTPUT"
69
79
env :
70
80
MERGE_BASE : ${{ steps.merge_base.outputs.sha }}
71
81
run : |
72
- if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' ':Cargo.lock' ':crates/**' ':!crates/red_knot*/**' ':!crates/ruff_python_formatter/**' ':!crates/ruff_formatter/**' ':!crates/ruff_dev/**' ':!crates/ruff_db/**' ':scripts/*' ':python/**' ':.github/workflows/ci.yaml'; then
82
+ if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' \
83
+ ':Cargo.lock' \
84
+ ':crates/**' \
85
+ ':!crates/red_knot*/**' \
86
+ ':!crates/ruff_python_formatter/**' \
87
+ ':!crates/ruff_formatter/**' \
88
+ ':!crates/ruff_dev/**' \
89
+ ':!crates/ruff_db/**' \
90
+ ':scripts/*' \
91
+ ':python/**' \
92
+ ':.github/workflows/ci.yaml' \
93
+ ; then
73
94
echo "changed=false" >> "$GITHUB_OUTPUT"
74
95
else
75
96
echo "changed=true" >> "$GITHUB_OUTPUT"
@@ -80,7 +101,21 @@ jobs:
80
101
env :
81
102
MERGE_BASE : ${{ steps.merge_base.outputs.sha }}
82
103
run : |
83
- if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' ':Cargo.lock' ':crates/ruff_python_formatter/**' ':crates/ruff_formatter/**' ':crates/ruff_python_trivia/**' ':crates/ruff_python_ast/**' ':crates/ruff_source_file/**' ':crates/ruff_python_index/**' ':crates/ruff_python_index/**' ':crates/ruff_text_size/**' ':crates/ruff_python_parser/**' ':scripts/*' ':python/**' ':.github/workflows/ci.yaml'; then
104
+ if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' \
105
+ ':Cargo.lock' \
106
+ ':crates/ruff_python_formatter/**' \
107
+ ':crates/ruff_formatter/**' \
108
+ ':crates/ruff_python_trivia/**' \
109
+ ':crates/ruff_python_ast/**' \
110
+ ':crates/ruff_source_file/**' \
111
+ ':crates/ruff_python_index/**' \
112
+ ':crates/ruff_python_index/**' \
113
+ ':crates/ruff_text_size/**' \
114
+ ':crates/ruff_python_parser/**' \
115
+ ':scripts/*' \
116
+ ':python/**' \
117
+ ':.github/workflows/ci.yaml' \
118
+ ; then
84
119
echo "changed=false" >> "$GITHUB_OUTPUT"
85
120
else
86
121
echo "changed=true" >> "$GITHUB_OUTPUT"
@@ -91,7 +126,11 @@ jobs:
91
126
env :
92
127
MERGE_BASE : ${{ steps.merge_base.outputs.sha }}
93
128
run : |
94
- if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' ':Cargo.lock' ':fuzz/fuzz_targets/**' ':.github/workflows/ci.yaml'; then
129
+ if git diff --quiet "${MERGE_BASE}...HEAD" -- ':Cargo.toml' \
130
+ ':Cargo.lock' \
131
+ ':fuzz/fuzz_targets/**' \
132
+ ':.github/workflows/ci.yaml' \
133
+ ; then
95
134
echo "changed=false" >> "$GITHUB_OUTPUT"
96
135
else
97
136
echo "changed=true" >> "$GITHUB_OUTPUT"
@@ -102,7 +141,13 @@ jobs:
102
141
env :
103
142
MERGE_BASE : ${{ steps.merge_base.outputs.sha }}
104
143
run : |
105
- if git diff --quiet "${MERGE_BASE}...HEAD" -- ':**/*' ':!**/*.md' ':crates/red_knot_python_semantic/resources/mdtest/**/*.md' ':!docs/**' ':!assets/**' ':.github/workflows/ci.yaml'; then
144
+ if git diff --quiet "${MERGE_BASE}...HEAD" -- ':**/*' \
145
+ ':!**/*.md' \
146
+ ':crates/red_knot_python_semantic/resources/mdtest/**/*.md' \
147
+ ':!docs/**' \
148
+ ':!assets/**' \
149
+ ':.github/workflows/ci.yaml' \
150
+ ; then
106
151
echo "changed=false" >> "$GITHUB_OUTPUT"
107
152
else
108
153
echo "changed=true" >> "$GITHUB_OUTPUT"
@@ -113,7 +158,9 @@ jobs:
113
158
env :
114
159
MERGE_BASE : ${{ steps.merge_base.outputs.sha }}
115
160
run : |
116
- if git diff --quiet "${MERGE_BASE}...HEAD" -- ':playground/**'; then
161
+ if git diff --quiet "${MERGE_BASE}...HEAD" -- \
162
+ ':playground/**' \
163
+ ; then
117
164
echo "changed=false" >> "$GITHUB_OUTPUT"
118
165
else
119
166
echo "changed=true" >> "$GITHUB_OUTPUT"
0 commit comments