diff --git a/.github/workflows/build_pr.yml b/.github/workflows/build_pr.yml index 799d98d..2e1486a 100644 --- a/.github/workflows/build_pr.yml +++ b/.github/workflows/build_pr.yml @@ -11,10 +11,9 @@ on: jobs: build-pr: if: | - startsWith(github.head_ref, '7.14.x') != 'true' || - startsWith(github.head_ref, '7.15.x') != 'true' || - startsWith(github.head_ref, '8.0.x') != 'true' || - startsWith(github.head_ref, 'master') != 'true' || + startsWith(github.head_ref, '7.') != 'true' && + startsWith(github.head_ref, '8.') != 'true' && + startsWith(github.head_ref, 'master') != 'true' && startsWith(github.head_ref, 'release-') != 'true' uses: ./.github/workflows/_reusable_build.yml secrets: inherit