Skip to content

Commit

Permalink
Update prettier.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rrafaelc authored Sep 17, 2023
1 parent 0d3a04c commit 94967b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Format the code

on:
push:
pull_request:
branches:
- main

jobs:
format:
Expand All @@ -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' }}
Expand Down

0 comments on commit 94967b1

Please sign in to comment.