File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,13 +42,16 @@ jobs:
4242 echo "config<<EOF" >> $GITHUB_OUTPUT
4343 cat ${{ inputs.config_file }} >> $GITHUB_OUTPUT
4444 echo "EOF" >> $GITHUB_OUTPUT
45-
46- IGNORE=`echo '${{ toJSON(fromJSON(steps.read-json.outputs.config).ignore) }}' | jq -c '.'`
47- echo "ignore=${IGNORE}" >> $GITHUB_OUTPUT
4845 else
4946 echo "config={}" >> $GITHUB_OUTPUT
5047 fi
5148
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+
5255 - name : Find all XML-files in this repository
5356 id : find-xml
5457 run : |
6063 run : |
6164
6265 echo '${{ steps.find-xml.outputs.filelist }}' | jq -c '.[]' | while read i; do
63- echo jq --null-input '${{ steps.find-xml.outputs.filelist }} - ${{ steps.read-json .outputs.ignore }}'
66+ echo jq --null-input '${{ steps.find-xml.outputs.filelist }} - ${{ steps.read-ignore .outputs.ignore }}'
6467
6568 if [ "${{ contains(fromJSON(steps.read-json.outputs.config).ignore, './phpcs.xml') }}" = "true" ]; then
6669 echo "Skipping ${i}"
You can’t perform that action at this time.
0 commit comments