Skip to content

Update deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-th… #7

Update deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-th…

Update deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-th… #7

Workflow file for this run

name: WPCS check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
phpcs:
name: WPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
excludes: 'vendor'
extra_args: '--report-json=./phpcs.json'
- name: Update summary
run: |
npm i -g github:10up/phpcs-json-to-md
phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
cat phpcs.md >> $GITHUB_STEP_SUMMARY
if: always()