From 686430e6c674db2b7656aea1be24e45b6ca0d515 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Sun, 28 Jan 2024 13:30:05 +0100 Subject: [PATCH] Update formatt-all.yml --- .github/workflows/formatt-all.yml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/formatt-all.yml b/.github/workflows/formatt-all.yml index 05c4d5a4d..4cf57ed12 100644 --- a/.github/workflows/formatt-all.yml +++ b/.github/workflows/formatt-all.yml @@ -16,26 +16,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.head_ref }} - fetch-depth: 0 - - uses: actions/setup-node@v3 - with: - node-version: "16" - - name: Install stylua and format files - uses: JohnnyMorganz/stylua-action@v3 + - uses: actions/checkout@v4 + - uses: JohnnyMorganz/stylua-action@v3 with: token: ${{ secrets.GITHUB_TOKEN }} - version: v0.18.0 - args: -- . - - name: Format files with Prettier - run: | - npx prettier --write '**/*.{ts,js,css,html}' - - name: Update repo before push - run: | - git pull - - name: Commit changes and push current branch - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: :art:Code formatted in all files \ No newline at end of file + version: latest # NOTE: we recommend pinning to a specific version in case of formatting changes + # CLI arguments + args: --check . \ No newline at end of file