From 45179a01818c12a263e9a5c8a8a776abcae0c933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Sat, 20 Jul 2024 07:31:08 -0700 Subject: [PATCH] Exclude Dependabot created branches from CI testing on push When Dependabot creates a pull request we always end up with two CI runs -- one for the pull request and one for the push of the commit to a branch. Exclude pushes to branches for Dependabot created pull requests, to prevent this duplication of work. --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5b9d28f..bc3f299 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,8 +4,11 @@ name: Test on: - push: pull_request: + push: + branches: + - '**' + - '!dependabot/**' workflow_call: env: