From 0cc56a71a51296b76765992900c101efc658e909 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 28 Aug 2023 20:28:44 -0300 Subject: ci: fix dependabot duplicated workflow runs Every workflow is being executed twice for dependabot: Once when its branch is pushed to this repository and again when a PR is opened for it. For example, see the checks in #5979 ("29 checks passed"). This happens because both `on.push` and `on.pull_request` are specified in the workflow files. There does not seem to be a simple and generic way to avoid such duplicated runs directly in GitHub Actions (such as preventing the same check from running for the same exact commit)[1], so just ignore the dependabot branches on push for now. See also and commit 5871b08a4 ("ci: run for every branch instead of just master", 2023-04-23) / PR #5815. [1] https://github.com/orgs/community/discussions/26276 --- .github/workflows/check-python.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github/workflows/check-python.yml') diff --git a/.github/workflows/check-python.yml b/.github/workflows/check-python.yml index 35584165c..977510145 100644 --- a/.github/workflows/check-python.yml +++ b/.github/workflows/check-python.yml @@ -4,6 +4,8 @@ name: Check-Python on: push: + branches-ignore: + - 'dependabot/**' paths: - '**.py' - .github/workflows/check-python.yml -- cgit v1.2.3-54-g00ecf