From 0771591cb0681023df4c60a8e73d4b53a557af72 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 16 Oct 2021 19:10:55 +0200 Subject: [PATCH] Only run clang-format once per PR Only run one instance of the check for PRs. This should save about 30 sec on build time. --- .github/workflows/clang-format-check.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index 50d7924c3..b59db56c3 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -1,6 +1,11 @@ name: clang-format check -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: + types: [ opened, synchronize ] jobs: formatting-check: