File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed 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','release/3.0.0-SNAPSHOT ' ]
6+ branches : [ 'sustaining/2.4.x','master ' ]
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','release/3.0.0-SNAPSHOT ' ]
5+ branches : [ 'sustaining/2.4.x','master ' ]
66 workflows : ["Build Maven","Release Maven"]
77 types : [completed]
88jobs :
3030 - name : Set up Java for publishing to Maven Central Repository OSS
3131 uses : actions/setup-java@v4
3232 with :
33- java-version : ' 11'
33+ java-version : ${{ github.event.workflow_run.head_branch == 'sustaining/2.4.x' && '8' || ' 11'}}
3434 distribution : ' temurin'
3535 server-id : ossrh
3636 server-username : MAVEN_USERNAME
Original file line number Diff line number Diff line change 2727 - name : Set up Java for publishing to Maven Central Repository OSS
2828 uses : actions/setup-java@v4
2929 with :
30- java-version : ' 11'
30+ java-version : ${{ github.event.workflow_run.head_branch == 'sustaining/2.4.x' && '8' || ' 11'}}
3131 distribution : ' temurin'
3232 server-id : ossrh
3333 server-username : MAVEN_USERNAME
You can’t perform that action at this time.
0 commit comments