From: Donatas Abraitis Date: Sun, 5 Mar 2023 19:12:23 +0000 (+0200) Subject: tools: Do not run commit linter for other branches than master X-Git-Tag: base_9.0~326^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=754a05405929a0a8f0c63b55e12ae591e45e9c0a;p=matthieu%2Ffrr.git tools: Do not run commit linter for other branches than master Signed-off-by: Donatas Abraitis --- 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