From 2e52dc514dc32a4e6c79737306dbe2a5496d8396 Mon Sep 17 00:00:00 2001 From: Elson Costa Date: Tue, 5 Mar 2024 14:35:34 -0300 Subject: [PATCH] include checks and fixes. --- .github/workflows/prettier-php.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prettier-php.yml b/.github/workflows/prettier-php.yml index d183ec0e2..a0083e825 100644 --- a/.github/workflows/prettier-php.yml +++ b/.github/workflows/prettier-php.yml @@ -3,10 +3,6 @@ name: Format Prettier on: pull_request: types: [ opened, synchronize, reopened, ready_for_review ] - merge_group: - push: - paths: - - '*/**' jobs: cancel-runs: if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main' @@ -35,14 +31,17 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Node.js + if: ${{ github.ref != 'refs/heads/main' }} uses: actions/setup-node@v3 with: node-version: 18 - name: Install Dependencies + if: ${{ github.ref != 'refs/heads/main' }} run: npm install prettier @prettier/plugin-php stylelint-prettier - name: Run prettier code format + if: ${{ github.ref != 'refs/heads/main' }} run: npx prettier --write **/*.{php,js} --plugin=@prettier/plugin-php --ignore-unknown && npx stylelint **/*.css --fix - name: Run add and commit