File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build Maven
33on :
44 push :
55 pull_request :
6- branches : [ master ]
6+ branches : [ ' master','release/3.0.0-SNAPSHOT' ]
77jobs :
88 build-maven :
99 runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Deploy Maven
22
33on :
44 workflow_run :
5- branches : [ master ]
5+ branches : [ ' master','release/3.0.0-SNAPSHOT' ]
66 workflows : ["Build Maven","Release Maven"]
77 types : [completed]
88jobs :
@@ -26,10 +26,11 @@ jobs:
2626 with :
2727 fetch-depth : 0
2828 submodules : recursive
29+ ref : ${{ github.event.workflow_run.head_branch }}
2930 - name : Set up Java for publishing to Maven Central Repository OSS
3031 uses : actions/setup-java@v4
3132 with :
32- java-version : ' 8 '
33+ java-version : ${{ github.event.workflow_run.head_branch == 'release/3.0.0-SNAPSHOT' && '11' || '8'}}
3334 distribution : ' temurin'
3435 server-id : ossrh
3536 server-username : MAVEN_USERNAME
You can’t perform that action at this time.
0 commit comments