From 5d7a43fdcf819593a1fa6e48e232cccb690814e3 Mon Sep 17 00:00:00 2001 From: Tung Du Date: Tue, 13 Jul 2021 21:46:40 +0700 Subject: [PATCH] fix: vipcs detection --- README.md | 3 ++- entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2067ab3..c57321d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ To make it as simple as possible, this action supports WordPress Coding Standard This is a fork of [chekalsky/phpcs-action](https://github.com/chekalsky/phpcs-action), so this action supports GitHub Action annotations too. All credit goes to [Ilya Chekalsky](https://github.com/chekalsky). -From v1.3.1, this action will +From v1.3.1, this action can detect the PHPCS custom config and use that config to check the source code. When using the local config, `paths`, `excludes`, and `standard` are ignored. + ## Known Caveats/Issues ### Annotations limit diff --git a/entrypoint.sh b/entrypoint.sh index 41371a3..8998eeb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ cp /action/problem-matcher.json /github/workflow/problem-matcher.json git clone -b master https://github.com/WordPress/WordPress-Coding-Standards.git ~/wpcs -if [ "${INPUT_STANDARD_REPO}" = "WordPress-VIP-Go" ] || [ "${INPUT_STANDARD_REPO}" = "WordPressVIPMinimum" ]; then +if [ "${INPUT_STANDARD}" = "WordPress-VIP-Go" ] || [ "${INPUT_STANDARD}" = "WordPressVIPMinimum" ]; then echo "Setting up VIPCS" git clone https://github.com/Automattic/VIP-Coding-Standards ${HOME}/vipcs git clone https://github.com/sirbrillig/phpcs-variable-analysis ${HOME}/variable-analysis