Skip to content

Commit 6f8f72a

Browse files
committed
bump
1 parent a3c79a8 commit 6f8f72a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/xmllinter.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
echo "config<<EOF" >> $GITHUB_OUTPUT
4343
cat ${{ inputs.config_file }} >> $GITHUB_OUTPUT
4444
echo "EOF" >> $GITHUB_OUTPUT
45+
46+
IGNORE='${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.'
47+
echo "ignore=${IGNORE}" >> $GITHUB_OUTPUT
4548
else
4649
echo "config={}" >> $GITHUB_OUTPUT
4750
fi
@@ -55,11 +58,10 @@ jobs:
5558
- name: Lint XML
5659
id: linter
5760
run: |
58-
echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.'
5961
6062
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+
echo jq --null-input '${{ steps.find-xml.outputs.filelist }} - ${{ steps.read-json.outputs.ignore }}'
64+
6365
if [ "${{ contains(fromJSON(steps.read-json.outputs.config).ignore, './phpcs.xml') }}" = "true" ]; then
6466
echo "Skipping ${i}"
6567
else

0 commit comments

Comments
 (0)