From 9dfd8f4f6ee3c5f4a8b5a5cb8710e8ec3d6e5721 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 26 Nov 2023 21:30:10 +0100 Subject: [PATCH] Update lint workflow to only trigger linting once on PRs --- .github/workflows/lint.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 85097631..a8d0c432 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,13 +1,17 @@ name: Lint -on: [push, pull_request, workflow_dispatch] - -env: - FORCE_COLOR: 1 +on: + push: + branches: ['main'] + pull_request: + workflow_dispatch: # Allows running the workflow manually from the Actions tab permissions: contents: read +env: + FORCE_COLOR: 1 + jobs: lint: runs-on: ubuntu-latest