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