tools: Do not run commit linter for other branches than master

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2023-03-05 21:12:23 +02:00
parent e618cc7b21
commit 754a054059

View file

@ -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