File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments