From 87171ca3aa6bd313b576949635d9ae20a8c7e7d7 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Fri, 23 Aug 2024 10:21:58 +0800 Subject: [PATCH] Reset modules before checking code quality --- .github/workflows/code-quality.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index 552ec80d2f..833b5fb59c 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -33,6 +33,11 @@ jobs: - name: Install Composer dependencies run: composer install --no-interaction --no-progress --no-scripts + - name: Reset modules + run: | + git reset --hard + git clean -fd + - name: Run code quality checks (on push) if: github.event_name == 'push' run: ./.github/workflows/utilities/phpcs-push ${{ github.sha }}