From 849f27ddc6cdb12a8a779347f218814b44572245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Peliz=C3=A4us?= Date: Thu, 19 Oct 2023 09:12:39 +0200 Subject: [PATCH] github: Run push actions on main and release branches only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If dependabot creates new PRs, those are not originating from a fork. Instead a new branch is created in the same repository which triggers on both `push` and `pull_request`. Limiting the push trigger to the main and release branches doesn't anymore duplicate the jobs for dependabot PRs. Signed-off-by: Julian Pelizäus --- .github/workflows/tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c72ddd034b1c..91b102a362f1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,9 @@ name: Tests on: - - push + - push: + branches: + - main + - stable-* - pull_request permissions: