diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 563b87d..273c12c 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,5 +1,12 @@ name: Ruff -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: ruff: runs-on: ubuntu-latest