From 0beff65d91b4e41a5b63e9d3db28168d1df6415d Mon Sep 17 00:00:00 2001 From: Alexandre Bergel Date: Tue, 6 Aug 2024 14:50:55 +0200 Subject: [PATCH] Update run_lint.yml --- .github/workflows/run_lint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_lint.yml b/.github/workflows/run_lint.yml index 5341980..8902b0e 100644 --- a/.github/workflows/run_lint.yml +++ b/.github/workflows/run_lint.yml @@ -4,10 +4,13 @@ name: Run static code analyzer Lint on: pull_request: - types: [ labeled, opened, synchronize ] + push: + branches: + - master jobs: run_lint: + if: ${{ github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'build:nolint') }} if: contains(github.event.pull_request.labels.*.name, 'build:lint') || github.event.label.name == 'build:lint' runs-on: ubuntu-latest permissions: