From 55f89b2df5348851f3b9cb09f218b7aa74029871 Mon Sep 17 00:00:00 2001 From: Elle Sullivan Date: Mon, 4 Nov 2024 16:57:08 +0000 Subject: [PATCH] Add if statement to run action on DBP related files changing --- .github/workflows/pir_end_to_end_tests.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pir_end_to_end_tests.yml b/.github/workflows/pir_end_to_end_tests.yml index 7ce7222f61..d1559fc017 100644 --- a/.github/workflows/pir_end_to_end_tests.yml +++ b/.github/workflows/pir_end_to_end_tests.yml @@ -6,10 +6,12 @@ on: - cron: '0 3 * * 1-5' # 3AM UTC offsetted to legacy to avoid action-junit-report@v4 bug push: branches: [ "loremattei/**" ] - pull_request: - #branches: - # - hotfix/* - # - release/* + if: | + startsWith(github.base_ref, 'release/') || + startsWith(github.base_ref, 'hotfix/') || + contains(toJson(github.event.pull_request.files.*.filename), 'DBPE2ETests/') || + contains(toJson(github.event.pull_request.files.*.filename), 'LocalPackages/DataBrokerProtection/') || + contains(toJson(github.event.pull_request.files.*.filename), 'DuckDuckGo.xcodeproj/project.pbxproj') || jobs: pir-e2e-tests: