From 94967b1ae8968c82d5f018c82d5cb174f61b5c2c Mon Sep 17 00:00:00 2001 From: Rafael Costa Date: Sun, 17 Sep 2023 17:29:40 -0300 Subject: [PATCH] Update prettier.yml --- .github/workflows/prettier.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 14c5b2b..c27bcdb 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -2,7 +2,8 @@ name: Format the code on: push: - pull_request: + branches: + - main jobs: format: @@ -12,11 +13,10 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '18' + ssh-key: ${{secrets.KEY}} - name: Prettier - run: npx prettier --write . - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx prettier --write . - uses: stefanzweifel/git-auto-commit-action@v4 if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}