diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index ee24009..0593c08 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -20,10 +20,10 @@ jobs: - run: npm ci if: steps.cache.outputs.cache-hit != 'true' - run: npx prettier --check src - - run: npm run prettier - if: ${{ failure() }} - name: Create or Update PR + if: ${{ failure() }} run: | + npx prettier --write --log-level silent BASE_BRANCH=$( git rev-parse --abbrev-ref HEAD ) HEAD_BRANCH="prettier/$BASE_BRANCH" git config --global user.email "cicada1003@gmail.com"