From 1d6bf6c4f7ae756e6b34ace9c333fef2b296e793 Mon Sep 17 00:00:00 2001 From: Jan Willhaus Date: Sat, 6 Jan 2024 01:04:21 +0100 Subject: [PATCH] ci: Fix commitizen linter --- .github/workflows/linters.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 42c502e..9933fe8 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -22,3 +22,8 @@ jobs: - run: cz check --rev-range origin/main..HEAD shell: bash + if: github.event_name == 'pull_request' || github.ref != 'refs/heads/main' + + - run: cz check --rev-range HEAD + shell: bash + if: github.event_name == 'push' && github.ref == 'refs/heads/main'