File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build
33on :
44 push :
55 pull_request :
6- branches : [ master ]
6+ branches : [ ' master','release/16.0.0-SNAPSHOT' ]
77
88jobs :
99 build-maven :
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ name: Package/Deploy
33on :
44 workflow_dispatch :
55 workflow_run :
6- branches : [ master ]
6+ branches : [ ' master','release/16.0.0-SNAPSHOT' ]
77 workflows : ["Build","Release"]
88 types : [completed]
99jobs :
1010 deploy-maven :
11- if : ${{ github.event.workflow_run.conclusion == 'success' }}
11+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event=='push' }}
1212 runs-on : ' ubuntu-latest'
1313 steps :
1414 - name : Print github context
@@ -19,10 +19,11 @@ jobs:
1919 with :
2020 fetch-depth : 0
2121 submodules : recursive
22+ ref : ${{ github.event.workflow_run.head_branch }}
2223 - name : Set up Java for publishing to Maven Central Repository OSS
2324 uses : actions/setup-java@v4
2425 with :
25- java-version : ' 8 '
26+ java-version : ${{ github.event.workflow_run.head_branch == 'release/16.0.0-SNAPSHOT' && '11' || '8'}}
2627 distribution : ' zulu'
2728 server-id : ossrh
2829 server-username : MAVEN_USERNAME
You can’t perform that action at this time.
0 commit comments