Skip to content

Commit c0388b6

Browse files
committed
Update CI in prep for master->2.x renaming
1 parent 8ff4bfd commit c0388b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build and Deploy Snapshot
22
on:
33
push:
44
branches:
5-
- master
5+
- 2.x
66
- "2.18"
77
pull_request:
88

@@ -19,9 +19,9 @@ jobs:
1919
env:
2020
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4.2.2
2323
- name: Set up JDK
24-
uses: actions/setup-java@v3
24+
uses: actions/setup-java@v4.7.0
2525
with:
2626
distribution: 'temurin'
2727
java-version: ${{ matrix.java_version }}
@@ -36,9 +36,9 @@ jobs:
3636
run: ./mvnw -B -q -ff -ntp verify
3737
- name: Extract project Maven version
3838
id: projectVersion
39-
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
39+
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.5.1:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
4040
- name: Deploy snapshot
41-
if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
41+
if: ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4242
env:
4343
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
4444
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}

0 commit comments

Comments
 (0)