From 754a05405929a0a8f0c63b55e12ae591e45e9c0a Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 5 Mar 2023 21:12:23 +0200 Subject: [PATCH] tools: Do not run commit linter for other branches than master Signed-off-by: Donatas Abraitis --- .github/workflows/commitlint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index ea5b704188..06bf3b3b95 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -10,8 +10,9 @@ on: - unlabeled jobs: - lint: - if: github.repository == 'frrouting/frr' + commitlint: + if: github.repository == 'frrouting/frr' && github.base_ref == 'refs/heads/master' + name: Check if the commits meet the requirements of the guidelines permissions: contents: read pull-requests: read