From 0d367f3f827030f7af2295d21fb576f0d18dda94 Mon Sep 17 00:00:00 2001 From: Arthur Fiorette <47537704+ArthurFiorette@users.noreply.github.com> Date: Sun, 21 Mar 2021 09:20:12 -0300 Subject: [PATCH] Formatting only for branches --- .github/workflows/prettier.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index b03a24a..d9d28ba 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -2,6 +2,8 @@ name: Prettify Code on: push: + branches: + - '*' workflow_dispatch: jobs: @@ -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: @@ -23,4 +25,4 @@ jobs: only_changed: ${{ github.event_name == 'push' }} commit_message: Prettified code env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}