diff --git a/.github/workflows/Format.yml b/.github/workflows/Format.yml index dae3974d..65bc1bba 100644 --- a/.github/workflows/Format.yml +++ b/.github/workflows/Format.yml @@ -1,8 +1,14 @@ name: Format suggestions on: pull_request: + types: [labeled] + pull_request_target: + types: [labeled] jobs: code-style: runs-on: ubuntu-latest + if: contains(github.event.pull_request.labels.*.name, 'ok to format') + permissions: + pull-requests: write steps: - uses: julia-actions/julia-format@v2