Skip to content

Commit 8a5ff5d

Browse files
csvirimetacosm
authored andcommitted
chore(ci): support for v4 (#1460)
1 parent 9e47216 commit 8a5ff5d

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
pull_request:
1111
paths-ignore:
1212
- 'docs/**'
13-
branches: [ main, v1, v2, next ]
13+
branches: [ main, v1, v2, v3, next ]
1414
workflow_dispatch:
1515
jobs:
1616
check_format_and_unit_tests:

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
ref: "v2"
1919
- uses: actions/checkout@v3
2020
if: ${{ startsWith(github.event.release.tag_name, 'v3.') }}
21+
with:
22+
ref: "v3"
23+
- uses: actions/checkout@v3
24+
if: ${{ startsWith(github.event.release.tag_name, 'v4.') }}
2125
- name: Set up Java and Maven
2226
uses: actions/setup-java@v3
2327
with:
@@ -59,6 +63,10 @@ jobs:
5963
ref: "v2"
6064
- uses: actions/checkout@v3
6165
if: ${{ startsWith(github.event.release.tag_name, 'v3.') }}
66+
with:
67+
ref: "v3"
68+
- uses: actions/checkout@v3
69+
if: ${{ startsWith(github.event.release.tag_name, 'v4.') }}
6270
- name: Set up Java and Maven
6371
uses: actions/setup-java@v3
6472
with:
@@ -86,9 +94,15 @@ jobs:
8694
with:
8795
github_token: ${{ secrets.GITHUB_TOKEN }}
8896
branch: "v2"
89-
- name: Push changes v3
97+
- name: Push changes v2
9098
uses: ad-m/github-push-action@master
9199
if: ${{ startsWith(github.event.release.tag_name, 'v3.' ) }}
92100
with:
93101
github_token: ${{ secrets.GITHUB_TOKEN }}
102+
branch: "v3"
103+
- name: Push changes v3
104+
uses: ad-m/github-push-action@master
105+
if: ${{ startsWith(github.event.release.tag_name, 'v4.' ) }}
106+
with:
107+
github_token: ${{ secrets.GITHUB_TOKEN }}
94108

.github/workflows/snapshot-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
push:
1111
paths-ignore:
1212
- 'docs/**'
13-
branches: [ main, v1, v2, next ]
13+
branches: [ main, v1, v2, v3, next ]
1414
workflow_dispatch:
1515
jobs:
1616
test:

0 commit comments

Comments
 (0)