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