Skip to content

Commit 88cf963

Browse files
committed
Build & deploy: add branch sustaining/2.4.x
1 parent c522d77 commit 88cf963

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Maven
33
on:
44
push:
55
pull_request:
6-
branches: [ 'master','release/3.0.0-SNAPSHOT' ]
6+
branches: [ 'sustaining/2.4.x','master' ]
77
jobs:
88
build-maven:
99
runs-on: ${{ matrix.os }}

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy Maven
22

33
on:
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]
88
jobs:
@@ -30,7 +30,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
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

0 commit comments

Comments
 (0)