We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4deb987 commit e9fe89cCopy full SHA for e9fe89c
.github/workflows/gradle.yml
@@ -131,8 +131,8 @@ jobs:
131
fi
132
133
# 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")))')
+ # Use a more robust approach that doesn't rely on --argjson
+ COMBINED_FILES=$(echo '{"files":'"$MODIFIED_FILES"', "added":'"$ADDED_FILES"'}' | jq '.files + .added | map(select(endswith(".java")))')
136
echo "JAVA_FILES=$COMBINED_FILES" >> $GITHUB_ENV
137
echo "Filtered Java Files: $COMBINED_FILES"
138
- name: Run Code Style Check
0 commit comments