diff options
author | 2023-08-28 20:28:44 -0300 | |
---|---|---|
committer | 2023-08-28 20:47:35 -0300 | |
commit | 0cc56a71a51296b76765992900c101efc658e909 (patch) | |
tree | 89e636e521848b079c3fae9a7d8a110fbe1f9a92 /.github | |
parent | build(deps): bump actions/checkout from 3.5.3 to 3.6.0 (diff) | |
download | firejail-0cc56a71a51296b76765992900c101efc658e909.tar.gz firejail-0cc56a71a51296b76765992900c101efc658e909.tar.zst firejail-0cc56a71a51296b76765992900c101efc658e909.zip |
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
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-extra.yml | 2 | ||||
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/check-c.yml | 2 | ||||
-rw-r--r-- | .github/workflows/check-profiles.yml | 2 | ||||
-rw-r--r-- | .github/workflows/check-python.yml | 2 | ||||
-rw-r--r-- | .github/workflows/codespell.yml | 2 | ||||
-rw-r--r-- | .github/workflows/test.yml | 2 |
7 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml index 82be41b3e..8973cb4ad 100644 --- a/.github/workflows/build-extra.yml +++ b/.github/workflows/build-extra.yml | |||
@@ -4,6 +4,8 @@ name: Build-extra | |||
4 | 4 | ||
5 | on: | 5 | on: |
6 | push: | 6 | push: |
7 | branches-ignore: | ||
8 | - 'dependabot/**' | ||
7 | paths: | 9 | paths: |
8 | - 'm4/**' | 10 | - 'm4/**' |
9 | - 'src/**.c' | 11 | - 'src/**.c' |
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd6fdb2e1..607c2e59c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
@@ -6,6 +6,8 @@ name: Build | |||
6 | # Note: Keep this list in sync with DISTFILES in ../../Makefile. | 6 | # Note: Keep this list in sync with DISTFILES in ../../Makefile. |
7 | on: | 7 | on: |
8 | push: | 8 | push: |
9 | branches-ignore: | ||
10 | - 'dependabot/**' | ||
9 | paths: | 11 | paths: |
10 | - 'contrib/**' | 12 | - 'contrib/**' |
11 | - 'etc/**' | 13 | - 'etc/**' |
diff --git a/.github/workflows/check-c.yml b/.github/workflows/check-c.yml index 2940465a9..29be41be5 100644 --- a/.github/workflows/check-c.yml +++ b/.github/workflows/check-c.yml | |||
@@ -4,6 +4,8 @@ name: Check-C | |||
4 | 4 | ||
5 | on: | 5 | on: |
6 | push: | 6 | push: |
7 | branches-ignore: | ||
8 | - 'dependabot/**' | ||
7 | paths: | 9 | paths: |
8 | - 'm4/**' | 10 | - 'm4/**' |
9 | - 'src/**.c' | 11 | - 'src/**.c' |
diff --git a/.github/workflows/check-profiles.yml b/.github/workflows/check-profiles.yml index 9caf8e0c7..9e77c7f60 100644 --- a/.github/workflows/check-profiles.yml +++ b/.github/workflows/check-profiles.yml | |||
@@ -4,6 +4,8 @@ name: Check-Profiles | |||
4 | 4 | ||
5 | on: | 5 | on: |
6 | push: | 6 | push: |
7 | branches-ignore: | ||
8 | - 'dependabot/**' | ||
7 | paths: | 9 | paths: |
8 | - 'ci/check/profiles/**' | 10 | - 'ci/check/profiles/**' |
9 | - 'etc/**' | 11 | - 'etc/**' |
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 | |||
4 | 4 | ||
5 | on: | 5 | on: |
6 | push: | 6 | push: |
7 | branches-ignore: | ||
8 | - 'dependabot/**' | ||
7 | paths: | 9 | paths: |
8 | - '**.py' | 10 | - '**.py' |
9 | - .github/workflows/check-python.yml | 11 | - .github/workflows/check-python.yml |
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 8cbe32328..b5d2b505d 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml | |||
@@ -4,6 +4,8 @@ name: Codespell | |||
4 | 4 | ||
5 | on: | 5 | on: |
6 | push: | 6 | push: |
7 | branches-ignore: | ||
8 | - 'dependabot/**' | ||
7 | paths-ignore: | 9 | paths-ignore: |
8 | - 'm4/**' | 10 | - 'm4/**' |
9 | - COPYING | 11 | - COPYING |
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7f1df261..20a552a64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
@@ -4,6 +4,8 @@ name: Test | |||
4 | 4 | ||
5 | on: | 5 | on: |
6 | push: | 6 | push: |
7 | branches-ignore: | ||
8 | - 'dependabot/**' | ||
7 | paths: | 9 | paths: |
8 | - 'm4/**' | 10 | - 'm4/**' |
9 | - 'src/**.c' | 11 | - 'src/**.c' |