Fix GHA CI branch trigger patterns (#14067)

* fix matching pattern on release branches

* test
This commit is contained in:
Tejaswini Bandlamudi 2023-04-12 09:13:40 +05:30 committed by GitHub
parent 3a7e4efdd6
commit 966cae1c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -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:

View File

@ -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 }}'

View File

@ -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 }}'