From 160a07d0b014be26f657b640688b651a3848d2da Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Tue, 12 Jul 2022 12:47:21 +0200 Subject: [PATCH 1/3] CI: skip building dependabot branches, we already build PRs --- .github/workflows/actions.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 136807eb2f3..a9d82f875f3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -7,6 +7,9 @@ on: jobs: test: + # don't build dependabot branches on push, we already build them on pull request + if: !(github.event == 'push' && startsWith(github.ref, 'refs/heads/dependabot')) + strategy: fail-fast: false matrix: From c1ce526e4e36b96d86a4339b4c98147dfe9d31e0 Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Tue, 12 Jul 2022 15:27:42 +0200 Subject: [PATCH 2/3] Rewrote boolean expression (De Morgan) --- .github/workflows/actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index a9d82f875f3..4bbcd49d7ae 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -8,7 +8,7 @@ jobs: test: # don't build dependabot branches on push, we already build them on pull request - if: !(github.event == 'push' && startsWith(github.ref, 'refs/heads/dependabot')) + if: github.event != 'push' || !startsWith(github.ref, 'refs/heads/dependabot') strategy: fail-fast: false From e1db1d25413dea32fa9d95fc30763f495b0d1845 Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Tue, 12 Jul 2022 21:34:32 +0200 Subject: [PATCH 3/3] Apply skip logic to all build jobs --- .github/workflows/actions.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 4bbcd49d7ae..231d451592a 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -57,6 +57,9 @@ jobs: run: ${{ matrix.buildcmd }} test-bin-compat: + # don't build dependabot branches on push, we already build them on pull request + if: github.event != 'push' || !startsWith(github.ref, 'refs/heads/dependabot') + strategy: fail-fast: false matrix: @@ -87,6 +90,9 @@ jobs: run: ${{ matrix.buildcmd }} test-windows: + # don't build dependabot branches on push, we already build them on pull request + if: github.event != 'push' || !startsWith(github.ref, 'refs/heads/dependabot') + strategy: fail-fast: false matrix: