From d205e9332738ed987357228a60f535cddb05f817 Mon Sep 17 00:00:00 2001 From: bitpredator <67551273+bitpredator@users.noreply.github.com> Date: Sun, 28 Jan 2024 14:35:51 +0100 Subject: [PATCH] Update formatt-all.yml --- .github/workflows/formatt-all.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/formatt-all.yml b/.github/workflows/formatt-all.yml index 62a708245..04c8cb056 100644 --- a/.github/workflows/formatt-all.yml +++ b/.github/workflows/formatt-all.yml @@ -10,6 +10,9 @@ jobs: 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@v4 - uses: JohnnyMorganz/stylua-action@v3