commit ae23feb6c241cc0a1a42543661e3bf7544e171da
Author: Turo Lamminen <turol@iki.fi>
AuthorDate: Mon Jun 20 18:55:08 2022 +0300
Commit: Turo Lamminen <turol@iki.fi>
CommitDate: Mon Jun 20 19:00:10 2022 +0300
Only trigger linter CI on pushes to master branch
Otherwise it would run twice when doing PRs from main repository
instead of a fork.
---
.github/workflows/cpp-linter.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/cpp-linter.yml b/.github/workflows/cpp-linter.yml
index b9c7fa88..76248003 100644
--- a/.github/workflows/cpp-linter.yml
+++ b/.github/workflows/cpp-linter.yml
@@ -6,6 +6,8 @@ on:
pull_request:
types: [opened, reopened, synchronize]
push:
+ branches:
+ - master
jobs:
cpp-linter: