From ebc5035e8dcaeb3ff1124444abef5c7e9fc24e74 Mon Sep 17 00:00:00 2001 From: nullchilly Date: Thu, 14 Jul 2022 23:16:20 +0700 Subject: [PATCH] ci(github): Add stylua check for main branch --- .github/workflows/formatting.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index f0c3310..b37562e 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -1,17 +1,16 @@ name: stylua on: - push: - branches: - - dev - paths-ignore: - - ".github/**" + push: + branches: ["main", "dev"] + paths-ignore: + - ".github/**" jobs: - stylua: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: JohnnyMorganz/stylua-action@1.0.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --check --config-path=stylua.toml . + stylua: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: JohnnyMorganz/stylua-action@1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --check --config-path=stylua.toml .