Skip to content

Commit eb0b19c

Browse files
committed
bump
1 parent a3c79a8 commit eb0b19c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/xmllinter.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
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}"

0 commit comments

Comments
 (0)