From fa5590369c81fd575fb0a059e6ccd1fac2b22bbd Mon Sep 17 00:00:00 2001 From: Tony Benoy <8504669+tonybenoy@users.noreply.github.com> Date: Thu, 30 Nov 2023 17:16:30 +0100 Subject: [PATCH] Update ruff.yml --- .github/workflows/ruff.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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