Skip to content

Commit c3d2a9b

Browse files
committed
bump
1 parent d9d1756 commit c3d2a9b

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

.github/workflows/xmllinter.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,15 @@ jobs:
4949
- name: Find all XML-files in this repository
5050
id: find-xml
5151
run: |
52-
FILES=`find . -type f -iname "*.xml"`
53-
for item in ${FILES}; do
54-
echo "${item}"
55-
done
56-
5752
filelist=`find . -type f -iname "*.xml" | jo -a`
58-
#echo "files<<EOF" >> $GITHUB_OUTPUT
59-
#printf '%s' "${FILES[@]}" | jq -R . | jq -s . >> $GITHUB_OUTPUT
60-
#echo "EOF" >> $GITHUB_OUTPUT
61-
echo "files=${filelist}" >> $GITHUB_OUTPUT
53+
echo "filelist=${filelist}" >> $GITHUB_OUTPUT
6254
6355
- name: Lint XML
6456
run: |
65-
echo "${{ steps.find-xml.outputs.files }}" | jq -c '.[]' | while read i; do
66-
echo ${i}
57+
echo '${{ steps.find-xml.outputs.filelist }}' | jq -c '.[]' | while read i; do
58+
if [ ${{ contains(steps.read-json.outputs.config).ignore, ${i}) }} -eq "true"]
59+
echo "Skipping ${i}"
60+
else
61+
echo "Linting ${i}"
62+
fi
6763
done
68-
#FILES=$(echo "${{ steps.find-xml.outputs.files }}" | jq -c '.[]')
69-
#for item in "${FILES}"; do
70-
# echo "${item}"
71-
#done

0 commit comments

Comments
 (0)