Skip to content

Commit e9fe89c

Browse files
committed
2880: static fixes 3
1 parent 4deb987 commit e9fe89c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ jobs:
131131
fi
132132
133133
# Combine arrays and filter for .java files
134-
# Ensure proper JSON formatting by using jq to process each array separately
135-
COMBINED_FILES=$(jq -n --argjson mod "$MODIFIED_FILES" --argjson add "$ADDED_FILES" '$mod + $add | map(select(endswith(".java")))')
134+
# Use a more robust approach that doesn't rely on --argjson
135+
COMBINED_FILES=$(echo '{"files":'"$MODIFIED_FILES"', "added":'"$ADDED_FILES"'}' | jq '.files + .added | map(select(endswith(".java")))')
136136
echo "JAVA_FILES=$COMBINED_FILES" >> $GITHUB_ENV
137137
echo "Filtered Java Files: $COMBINED_FILES"
138138
- name: Run Code Style Check

0 commit comments

Comments
 (0)