File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -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
4648 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 '.'`
54+ IGNORE=$( echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.')
5355 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`
60+ filelist=$( find . -type f -iname "*.xml" | jo -a)
5961 echo "filelist=${filelist}" >> $GITHUB_OUTPUT
6062
6163 - name : Lint XML
6264 id : linter
6365 run : |
64-
6566 echo '${{ steps.find-xml.outputs.filelist }}' | jq -c '.[]' | while read i; do
66- ignore=`jq --null-input '["${i}"] - ${{ steps.read-ignore.outputs.ignore }}'`
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}"
You can’t perform that action at this time.
0 commit comments