Skip to content

Commit 94903fe

Browse files
authored
ci: prepare ci for v3 release (#1140)
1 parent a152887 commit 94903fe

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
cancel-in-progress: true
99
on:
1010
pull_request:
11-
branches: [ main, v1, next ]
11+
branches: [ main, v1, v2, next ]
1212
workflow_dispatch:
1313
jobs:
1414
check_format_and_unit_tests:

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
ref: "v1"
1515
- uses: actions/checkout@v3
1616
if: ${{ startsWith(github.event.release.tag_name, 'v2.') }}
17+
with:
18+
ref: "v2"
19+
- uses: actions/checkout@v3
20+
if: ${{ startsWith(github.event.release.tag_name, 'v3.') }}
1721
- name: Set up Java and Maven
1822
uses: actions/setup-java@v2
1923
with:
@@ -59,6 +63,10 @@ jobs:
5963
ref: "v1"
6064
- uses: actions/checkout@v3
6165
if: ${{ startsWith(github.event.release.tag_name, 'v2.') }}
66+
with:
67+
ref: "v2"
68+
- uses: actions/checkout@v3
69+
if: ${{ startsWith(github.event.release.tag_name, 'v3.') }}
6270
- name: Set up Java and Maven
6371
uses: actions/setup-java@v2
6472
with:
@@ -85,3 +93,10 @@ jobs:
8593
if: ${{ startsWith(github.event.release.tag_name, 'v2.' ) }}
8694
with:
8795
github_token: ${{ secrets.GITHUB_TOKEN }}
96+
branch: "v2"
97+
- name: Push changes v3
98+
uses: ad-m/github-push-action@master
99+
if: ${{ startsWith(github.event.release.tag_name, 'v3.' ) }}
100+
with:
101+
github_token: ${{ secrets.GITHUB_TOKEN }}
102+

.github/workflows/snapshot-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
cancel-in-progress: true
99
on:
1010
push:
11-
branches: [ main, v1, next ]
11+
branches: [ main, v1, v2, next ]
1212
workflow_dispatch:
1313
jobs:
1414
test:

0 commit comments

Comments
 (0)