From 662d582b82b03bcf9f78e431835cc19114a73853 Mon Sep 17 00:00:00 2001 From: Adrian Riobo Date: Fri, 20 Sep 2024 13:39:47 +0200 Subject: [PATCH] QE: reduce the amount of windows e2e executions From now on only PRs will be executed, merges to main will not be cheked the downstream envs will ensure consistency on the main branch. The new condition also ensures PRs triggered by Dependabot will not be checked, those will be checked once they are merged to main on downstream, or if they will be re-triggered from the PR Signed-off-by: Adrian Riobo --- .github/workflows/windows-e2e.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/windows-e2e.yml b/.github/workflows/windows-e2e.yml index cba2e2ecfd..9b731447fa 100644 --- a/.github/workflows/windows-e2e.yml +++ b/.github/workflows/windows-e2e.yml @@ -8,6 +8,11 @@ on: jobs: windows-e2e-ocp: + # https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_run + if: | + github.event.workflow_run.conclusion == 'success' && + env.source_event == 'pull_request' && + github.event.workflow_run.triggering_actor != 'dependabot[bot]' uses: crc-org/crc/.github/workflows/windows-qe-tpl.yml@main strategy: fail-fast: false