From 5464f44f3a2e3b916b2c159c39479a4ea3a92c2c Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Sun, 8 Oct 2023 21:15:26 +0200 Subject: [PATCH] Move baseline file to correct location (#164) --- coding-standard-baseline/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coding-standard-baseline/action.yml b/coding-standard-baseline/action.yml index fc70f7c..4f0696f 100755 --- a/coding-standard-baseline/action.yml +++ b/coding-standard-baseline/action.yml @@ -131,7 +131,7 @@ runs: if: steps.changed-files-phpcs.outputs.app_any_changed == 'true' shell: bash run: | - cp ${{ github.workspace }}/base/phpcs.baseline.xml ${{ github.workspace }}/phpcs.baseline.xml + cp ${{ github.workspace }}/base/phpcs.baseline.xml ${{ github.workspace }}/magento-coding-standard/phpcs.baseline.xml # Since we ran phpcs in the base folder, the files in phpcs.baseline.xml contain the base folder in the path. # We need to remove /base/ so that the phpcs can locate the correct files. @@ -139,7 +139,7 @@ runs: if: steps.changed-files-phpcs.outputs.app_any_changed == 'true' shell: bash run: | - sed -i "s|/base/|/|" ${{ github.workspace }}/phpcs.baseline.xml + sed -i "s|/base/|/|" ${{ github.workspace }}/magento-coding-standard/phpcs.baseline.xml - name: Execute phpcs on head for changed files shell: bash