File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 42
42
43
43
- name : Check if release already exists
44
44
run : |
45
- if git ls-remote --quiet --exit-code origin refs/heads/release/ ${{ github.event.inputs.releaseVersion }} >/dev/null 2>&1
45
+ if git ls-remote --quiet --exit-code origin refs/heads/release- ${{ github.event.inputs.releaseVersion }} >/dev/null 2>&1
46
46
then
47
47
echo "Release ${{ github.event.inputs.releaseVersion }} already exists, patch will be perfomed"
48
48
else
52
52
53
53
- name : Checkout on existing release branch
54
54
run : |
55
- git checkout release/ ${{ github.event.inputs.releaseVersion }}
55
+ git checkout release- ${{ github.event.inputs.releaseVersion }}
56
56
57
57
- name : Extract tag versions
58
58
run : |
@@ -104,5 +104,5 @@ jobs:
104
104
git add .
105
105
git commit -m "Patched release v${{ env.GITHUB_SHORT_VERSION }}"
106
106
git tag v${{ env.GITHUB_SHORT_VERSION }}
107
- git push origin release/ v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}
107
+ git push origin release- v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}
108
108
git push origin v${{ env.GITHUB_SHORT_VERSION }}
Original file line number Diff line number Diff line change 47
47
48
48
- name : Check if release already exists
49
49
run : |
50
- if git ls-remote --quiet --exit-code origin refs/heads/release/ ${{ github.event.inputs.releaseVersion }} >/dev/null 2>&1
50
+ if git ls-remote --quiet --exit-code origin refs/heads/release- ${{ github.event.inputs.releaseVersion }} >/dev/null 2>&1
51
51
then
52
52
echo "ERROR: Release ${{ github.event.inputs.releaseVersion }} already exists"
53
53
exit 1
57
57
58
58
- name : Checkout with new branch
59
59
run : |
60
- git checkout -b release/ v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }} ${{ github.event.inputs.commitSha }}
60
+ git checkout -b release- v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }} ${{ github.event.inputs.commitSha }}
61
61
62
62
- name : Change Maven version to release version
63
63
run : mvn --batch-mode versions:set -DgenerateBackupPoms=false -DnewVersion=${{ env.GITHUB_SHORT_VERSION }}
90
90
git add .
91
91
git commit -m "Release v${{ env.GITHUB_SHORT_VERSION }}"
92
92
git tag v${{ env.GITHUB_SHORT_VERSION }}
93
- git push origin release/ v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}
93
+ git push origin release- v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}
94
94
git push origin v${{ env.GITHUB_SHORT_VERSION }}
95
95
96
96
- name : Checkout main
You can’t perform that action at this time.
0 commit comments