File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
-
10
+ if : " !contains(github.event.head_commit.message, 'Release') "
11
11
runs-on : ubuntu-latest
12
-
13
12
steps :
14
13
- name : Set up JDK 17
15
14
uses : actions/setup-java@v1
46
45
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
47
46
git checkout -b release-${{ github.ref_name }}
48
47
git add .
49
- git commit -m "Prepare release ${{ github.ref_name }}"
48
+ git commit -m "Release ${{ github.ref_name }}"
50
49
git tag ${{ github.ref_name }}
51
50
52
51
- name : Build with Maven
@@ -81,14 +80,15 @@ jobs:
81
80
82
81
- name : Commit and tag release version
83
82
run : |
83
+ git checkout -b next-release-v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}.0
84
84
git add .
85
85
git commit -m "Prepare next release v${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}.0"
86
86
87
87
- name : Rebase main onto this branch
88
88
run : |
89
89
git fetch
90
90
git checkout main
91
- git rebase release-${{ github.ref_name }}
91
+ git rebase next- release-v ${{ env.GITHUB_MAJOR_VERSION }}.${{ env.GITHUB_MINOR_VERSION }}.0
92
92
git push -f origin main
93
93
git push origin release-${{ github.ref_name }}
94
94
git push origin ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments