File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 4646 echo "config={}" >> $GITHUB_OUTPUT
4747 fi
4848
49+ - name : Substract ignore-list from config
50+ id : read-ignore
51+ run : |
52+ IGNORE=`echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.'`
53+ echo "ignore=${IGNORE}" >> $GITHUB_OUTPUT
54+
4955 - name : Find all XML-files in this repository
5056 id : find-xml
5157 run : |
@@ -55,12 +61,11 @@ jobs:
5561 - name : Lint XML
5662 id : linter
5763 run : |
58- echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.'
5964
6065 echo '${{ steps.find-xml.outputs.filelist }}' | jq -c '.[]' | while read i; do
61- echo "current_file= ${i}" >> "$GITHUB_ENV"
62- echo jq --null-input '${{ steps.find-xml.outputs.filelist }} - ${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}'
63- if [ "${{ contains(fromJSON(steps.read-json.outputs.config). ignore, './phpcs.xml') }} " = "true " ]; then
66+ ignore=`jq --null-input '[" ${i}"] - ${{ steps.read-ignore.outputs.ignore }}'`
67+
68+ if [ "$ignore" = "[] " ]; then
6469 echo "Skipping ${i}"
6570 else
6671 echo "Linting ${i}"
You can’t perform that action at this time.
0 commit comments