From 3f85fc28a57ca3f0b57d1fa877972409599c8104 Mon Sep 17 00:00:00 2001 From: Greg Gibeling Date: Mon, 29 Apr 2024 14:41:13 -0700 Subject: [PATCH] G2-1562 Update gh actions workflow --- .github/workflows/maven.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9145e04..72b31b0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -13,13 +13,13 @@ jobs: concurrency: "${{ github.workflow }}-${{ github.ref }}" steps: - name: Checkout - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + uses: actions/checkout@v4 + - uses: actions/setup-java@v3 with: distribution: adopt - java-version: 11 + java-version: 17 cache: maven - name: Build - run: "mvn -s \"${GITHUB_WORKSPACE}/.github/workflows/maven-settings.xml\" -B ${{ (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && (github.ref == 'refs/heads/master')) && 'deploy' || 'package' }} --file pom.xml -Prelease,release-snapshot" + run: "mvn -s \"${GITHUB_WORKSPACE}/.github/workflows/maven-settings.xml\" -B ${{ (((github.event_name == 'push') || (github.event_name == 'workflow_dispatch')) && (github.ref == 'refs/heads/main')) && 'deploy' || 'package' }} --file pom.xml -Prelease,release-snapshot" env: GITHUB_TOKEN: "${{ github.token }}"