Update deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-th… #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |