From 89b5a04fb5bce23cdd77e5b9f2e175f60404e429 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 29 Sep 2021 14:52:37 +0200 Subject: ci: don't run stylua on all branches --- .github/workflows/stylua.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/stylua.yml (limited to '.github/workflows/stylua.yml') diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml new file mode 100644 index 00000000..b4498d93 --- /dev/null +++ b/.github/workflows/stylua.yml @@ -0,0 +1,19 @@ +name: Stylua check + +on: + push: + branches: + - 'main' + pull_request: + +jobs: + stylua: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run Stylua check + uses: JohnnyMorganz/stylua-action@1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # CLI arguments + args: --check . -- cgit v1.2.3-70-g09d2