@@ -39,31 +39,33 @@ 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";
44+ cat "${{ inputs.config_file }}";
45+ echo "EOF";
46+ } >> "$GITHUB_OUTPUT"
4547 else
46- echo "config={}" >> $GITHUB_OUTPUT
48+ echo "config={}" >> " $GITHUB_OUTPUT"
4749 fi
4850
4951 - name : Substract ignore-list from config
5052 id : read-ignore
5153 run : |
52- IGNORE=` echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.'`
53- echo "ignore=${IGNORE}" >> $GITHUB_OUTPUT
54+ IGNORE="$( echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.')"
55+ echo "ignore=${IGNORE}" >> " $GITHUB_OUTPUT"
5456
5557 - name : Find all XML-files in this repository
5658 id : find-xml
5759 run : |
58- filelist=` find . -type f -iname "*.xml" | jo -a`
59- echo "filelist=${filelist}" >> $GITHUB_OUTPUT
60+ filelist="$( find . -type f -iname "*.xml" | jo -a)"
61+ echo "filelist=${filelist}" >> " $GITHUB_OUTPUT"
6062
6163 - name : Lint XML
6264 id : linter
6365 run : |
64-
65- echo '${{ steps.find-xml .outputs.filelist }}' | jq -c '.[]' | while read i; do
66- ignore=` jq --null-input '["${i}"] - ${{ steps.read-ignore.outputs.ignore }}'`
66+ echo "${{ steps.find-xml.outputs.filelist }}" | jq -c '.[]' | while read i; do
67+ 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