Skip to content

Commit f28d8af

Browse files
committed
Fix linter-issues
1 parent eb0b19c commit f28d8af

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/xmllinter.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ jobs:
3939
id: read-json
4040
run: | # to read multi-line JSON file and not bother with escaping
4141
if [ -f "${{ inputs.config_file }}" ]; then
42-
echo "config<<EOF" >> $GITHUB_OUTPUT
43-
cat ${{ inputs.config_file }} >> $GITHUB_OUTPUT
44-
echo "EOF" >> $GITHUB_OUTPUT
42+
{
43+
echo "config<<EOF" >> $GITHUB_OUTPUT;
44+
cat ${{ inputs.config_file }} >> $GITHUB_OUTPUT;
45+
echo "EOF" >> $GITHUB_OUTPUT;
46+
}
4547
else
4648
echo "config={}" >> $GITHUB_OUTPUT
4749
fi
@@ -61,9 +63,9 @@ jobs:
6163
- name: Lint XML
6264
id: linter
6365
run: |
64-
6566
echo '${{ steps.find-xml.outputs.filelist }}' | jq -c '.[]' | while read i; do
6667
ignore=`jq --null-input '["${i}"] - ${{ steps.read-ignore.outputs.ignore }}'`
68+
echo `jq --null-input '["${i}"] - ${{ steps.read-ignore.outputs.ignore }}'`
6769
6870
if [ "$ignore" = "[]" ]; then
6971
echo "Skipping ${i}"

0 commit comments

Comments
 (0)