File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,11 @@ runs:
83
83
shell : bash
84
84
run : |
85
85
sed "s/ /\n/g" ${{ github.workspace }}/modified_files.txt > ${{ github.workspace }}/newline_file.txt
86
- grep -iE "\.php|\.phtml|\.html|\.xml" ${{ github.workspace }}/newline_file.txt > ${{ github.workspace }}/phpcs_files.txt || exit 0
86
+ grep -iE "\.php|\.phtml|\.html|\.xml" ${{ github.workspace }}/newline_file.txt > ${{ github.workspace }}/phpcs_files.txt || /bin/true
87
87
88
88
- name : Checkout - Before Merge
89
89
shell : bash
90
- if : ${{ hashFiles('phpcs_files.txt') != '' }}
90
+ if : test -s ${{ github.workspace }}/phpcs_files.txt
91
91
run : |
92
92
if ${{ github.event_name == 'pull_request' }}; then
93
93
git checkout ${{ github.event.pull_request.base.ref }}
97
97
98
98
- name : Filter php files and execute phpcs - Before Merge
99
99
shell : bash
100
- if : ${{ hashFiles('phpcs_files.txt') != '' }}
100
+ if : test -s ${{ github.workspace }}/phpcs_files.txt
101
101
run : |
102
102
php vendor/bin/phpcs --standard=Magento2 \
103
103
$([ -n "${{ inputs.severity }}" ] && echo "--severity=${{ inputs.severity }}") \
@@ -107,7 +107,7 @@ runs:
107
107
108
108
- name : Checkout after Merge and execute phpcs
109
109
shell : bash
110
- if : ${{ hashFiles('phpcs_files.txt') != '' }}
110
+ if : test -s ${{ github.workspace }}/phpcs_files.txt
111
111
run : |
112
112
if ${{ github.event_name == 'pull_request' }}; then
113
113
git checkout ${{ github.event.pull_request.head.ref }}
You can’t perform that action at this time.
0 commit comments