From 5af0b723cbb4021089b4f28fe6240aef2afe5793 Mon Sep 17 00:00:00 2001 From: Adrien Kantcheff <5028967+akantcheff@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:45:28 +0100 Subject: [PATCH] ci(buid-pr): use SUPPORTED_BRANCHES var for if check (#57) --- .github/workflows/build_pr.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build_pr.yml b/.github/workflows/build_pr.yml index 2e1486a..9e9974b 100644 --- a/.github/workflows/build_pr.yml +++ b/.github/workflows/build_pr.yml @@ -10,10 +10,6 @@ on: jobs: build-pr: - if: | - startsWith(github.head_ref, '7.') != 'true' && - startsWith(github.head_ref, '8.') != 'true' && - startsWith(github.head_ref, 'master') != 'true' && - startsWith(github.head_ref, 'release-') != 'true' + if: contains(fromJson(vars.SUPPORTED_BRANCHES).all-branches, github.head_ref) != true uses: ./.github/workflows/_reusable_build.yml secrets: inherit