From 966cae1c942eb7e549b359d2d3f08412ec21a62c Mon Sep 17 00:00:00 2001 From: Tejaswini Bandlamudi <96047043+tejaswini-imply@users.noreply.github.com> Date: Wed, 12 Apr 2023 09:13:40 +0530 Subject: [PATCH] Fix GHA CI branch trigger patterns (#14067) * fix matching pattern on release branches * test --- .github/workflows/cron-job-its.yml | 3 ++- .github/workflows/static-checks.yml | 6 ++++-- .github/workflows/unit-and-integration-tests-unified.yml | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cron-job-its.yml b/.github/workflows/cron-job-its.yml index 19993597087..02f42292163 100644 --- a/.github/workflows/cron-job-its.yml +++ b/.github/workflows/cron-job-its.yml @@ -22,7 +22,8 @@ on: - 'owasp-dependency-check-suppressions.xml' branches: - master - - /^\d+\.\d+\.\d+(-\S*)?$/ # release branches + - '[0-9]+.[0-9]+.[0-9]+' # release branches + - '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches jobs: build: diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index cc5ded8debf..08f81076467 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -18,11 +18,13 @@ on: push: branches: - master - - /^\d+\.\d+\.\d+(-\S*)?$/ # release branches + - '[0-9]+.[0-9]+.[0-9]+' # release branches + - '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches pull_request: branches: - master - - /^\d+\.\d+\.\d+(-\S*)?$/ # release branches + - '[0-9]+.[0-9]+.[0-9]+' # release branches + - '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' diff --git a/.github/workflows/unit-and-integration-tests-unified.yml b/.github/workflows/unit-and-integration-tests-unified.yml index b899ab0740a..20025c33654 100644 --- a/.github/workflows/unit-and-integration-tests-unified.yml +++ b/.github/workflows/unit-and-integration-tests-unified.yml @@ -24,7 +24,8 @@ on: - '**/*.md' branches: - master - - /^\d+\.\d+\.\d+(-\S*)?$/ # release branches + - '[0-9]+.[0-9]+.[0-9]+' # release branches + - '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches pull_request: paths-ignore: - 'docs/**' @@ -34,7 +35,8 @@ on: - '**/*.md' branches: - master - - /^\d+\.\d+\.\d+(-\S*)?$/ # release branches + - '[0-9]+.[0-9]+.[0-9]+' # release branches + - '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches concurrency: group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'