From 7d2a9a04621162a46dc081fe2c08c2e4d00c6ca9 Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Mon, 15 Nov 2021 22:58:51 +0100 Subject: [PATCH] Avoid duplicate action runs for eg. Dependabot As it pushes to a branch in the pino repo itself, unless we tell the CI jobs to only trigger `push` on the `main` branch, then it will trigger both `push` and `pull_request` on eg. the Dependabot PR:s --- .github/workflows/bench.yml | 2 ++ .github/workflows/ci.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index ab42bbc5f..3280e8e13 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -1,6 +1,8 @@ name: Benchmarks on: push: + branches: + - main paths-ignore: - 'docs/**' - '*.md' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 159fae728..0f608a631 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,8 @@ name: CI on: push: + branches: + - main paths-ignore: - 'docs/**' - '*.md'