Skip to content

Commit

Permalink
Formatting only for branches
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Mar 21, 2021
1 parent bac886f commit 0d367f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Prettify Code

on:
push:
branches:
- '*'
workflow_dispatch:

jobs:
Expand All @@ -14,7 +16,7 @@ jobs:
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Prettify code
- name: Prettify code
# https://github.com/creyD/prettier_action/
uses: creyD/prettier_action@v3.3
with:
Expand All @@ -23,4 +25,4 @@ jobs:
only_changed: ${{ github.event_name == 'push' }}
commit_message: Prettified code
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0d367f3

Please sign in to comment.