Skip to content

Commit 833abf9

Browse files
committed
ci: fix condition in buildifier workflow
The file variable contains the full path so matching with *
1 parent be2e9f6 commit 833abf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/bazel_buildifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
IFS=' ' read -r -a files <<< "${{ steps.changed_files.outputs.all }}"
3333
bazel_files=()
3434
for file in "${files[@]}"; do
35-
if [[ "$file" == BUILD || "$file" == WORKSPACE || "$file" == MODULE\.bazel || "$file" == \.bazelrc ]]; then
35+
if [[ "$file" == *BUILD || "$file" == *WORKSPACE || "$file" == *MODULE.bazel || "$file" == *.bazelrc ]]; then
3636
bazel_files+=("$file")
3737
fi
3838
done

0 commit comments

Comments
 (0)