From f86defbad341325e4eca9861adf055c08899ba6c Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Mon, 10 Feb 2025 15:45:22 +0200 Subject: [PATCH] ci: Disable some workflows for `dependabot` PRs Because they run a long time and aren't really necessary for PRs that only update dependencies. --- .github/workflows/check-vm.yml | 1 + .github/workflows/check.yml | 2 +- .github/workflows/qns.yml | 1 + .github/workflows/sanitize.yml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-vm.yml b/.github/workflows/check-vm.yml index 4876e582a1..836caebfc7 100644 --- a/.github/workflows/check-vm.yml +++ b/.github/workflows/check-vm.yml @@ -22,6 +22,7 @@ permissions: jobs: check-vm: + if: github.actor != 'dependabot[bot]' strategy: fail-fast: false matrix: diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 207a4855fe..b7df0902eb 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -152,5 +152,5 @@ jobs: bench: needs: [check] - if: ${{ !cancelled() && (github.event_name != 'workflow_dispatch' || github.event.inputs.run_benchmarks) }} + if: ${{ !cancelled() && (github.event_name != 'workflow_dispatch' || github.event.inputs.run_benchmarks) && github.actor != 'dependabot[bot]' }} uses: ./.github/workflows/bench.yml diff --git a/.github/workflows/qns.yml b/.github/workflows/qns.yml index 18a2c52a00..683e650839 100644 --- a/.github/workflows/qns.yml +++ b/.github/workflows/qns.yml @@ -28,6 +28,7 @@ env: jobs: docker-image: name: Build Docker image + if: github.actor != 'dependabot[bot]' runs-on: ubuntu-latest outputs: imageID: ${{ steps.docker_build_and_push.outputs.imageID }} diff --git a/.github/workflows/sanitize.yml b/.github/workflows/sanitize.yml index 2efc7fcd84..2dbeefc689 100644 --- a/.github/workflows/sanitize.yml +++ b/.github/workflows/sanitize.yml @@ -24,6 +24,7 @@ defaults: jobs: sanitize: + if: github.actor != 'dependabot[bot]' strategy: fail-fast: false matrix: