From e3e640d4f3b35f5c38145c297b7c7b7d38f70d82 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Mon, 10 Jun 2024 10:54:54 +0200 Subject: [PATCH] Update StyLuaGitHubAction.yml --- .github/workflows/StyLuaGitHubAction.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/StyLuaGitHubAction.yml b/.github/workflows/StyLuaGitHubAction.yml index 464fc0b8f..62e892be5 100644 --- a/.github/workflows/StyLuaGitHubAction.yml +++ b/.github/workflows/StyLuaGitHubAction.yml @@ -6,10 +6,12 @@ on: pull_request: types: [ labeled ] -- uses: actions/checkout@v3 -- uses: JohnnyMorganz/stylua-action@v3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - 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 + stylua-check: + name: Stylua Check + runs-on: ubuntu-latest + permissions: + contents: write + if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.label.name == 'format_all') }} + steps: + - uses: actions/checkout@v3 + - uses: JohnnyMorganz/stylua-action@v3 \ No newline at end of file