Skip to content

Commit 14e3d11

Browse files
Add a check for existence of phpcs.json.
1 parent 040a22c commit 14e3d11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/wpcs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
standard: 'WordPress'
2020
extra_args: '--report-json=./phpcs.json'
2121
- name: Update summary
22+
if: success() && hashFiles('./phpcs.json') != ''
2223
run: |
2324
npm i -g github:10up/phpcs-json-to-md
2425
phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
2526
cat phpcs.md >> $GITHUB_STEP_SUMMARY
26-
if: always()

0 commit comments

Comments
 (0)