From 1f4a3b1e9f48cb8ff6eb9cae1b62ca47c870e01c Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 15 Jan 2021 14:31:10 -0800 Subject: [PATCH] gha: don't check commits on push This check (for commit subject being short) only make sense for pull requests, and it fails on pushes to master (i.e. on merges). Make sure it's only run for pull requests. Signed-off-by: Kir Kolyshkin --- .github/workflows/validate.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 552a89647..a57ecb7c1 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -85,6 +85,8 @@ jobs: commit: runs-on: ubuntu-20.04 + # Only check commits on pull requests. + if: github.event_name == 'pull_request' steps: - name: get pr commits id: 'get-pr-commits'