Skip to content

Commit 6572782

Browse files
authored
chore(ci): support all release-2.x branch (#6824)
1 parent ee85f8a commit 6572782

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/auto-job-v2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
auto-job:
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- name: Add v2 label if target branch is main or release-2.0
16-
if: github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'release-2.0'
15+
- name: Add v2 label if target branch is main or release-2.x
16+
if: github.event.pull_request.base.ref == 'main' || startsWith(github.event.pull_request.base.ref, 'release-2.')
1717
uses: actions-ecosystem/action-add-labels@v1
1818
with:
1919
labels: 'v2'

.github/workflows/ci-v2.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
push:
55
branches:
66
- main
7-
- release-2.0
7+
- release-2.*
88
pull_request:
99
types: [opened, reopened, synchronize, ready_for_review]
1010
branches:
1111
- main
12-
- release-2.0
12+
- release-2.*
1313

1414

1515
concurrency:

0 commit comments

Comments
 (0)