Skip to content

Commit 8c614a0

Browse files
authored
fix: fixing maven version update (#704)
1 parent f02d76f commit 8c614a0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-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: [ master, v2 ]
11+
branches: [ master, v1 ]
1212
workflow_dispatch:
1313
jobs:
1414
build:

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,14 @@ jobs:
5959
git commit -m "Set new SNAPSHOT version into pom files." -a
6060
env:
6161
RELEASE_VERSION: ${{ github.event.release.tag_name }}
62-
- name: Push changes
62+
- name: Push changes v1
6363
uses: ad-m/github-push-action@master
64+
if: ${{ startsWith(github.event.release.tag_name, 'v1.' ) }}
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
branch: "v1"
68+
- name: Push changes v2
69+
uses: ad-m/github-push-action@master
70+
if: ${{ startsWith(github.event.release.tag_name, 'v2.' ) }}
6471
with:
6572
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)