From 44e65b9f4b6204f6ec44152a51dcee0c75165ce5 Mon Sep 17 00:00:00 2001 From: Andrus Adamchik Date: Sat, 20 Apr 2024 19:41:57 -0400 Subject: [PATCH] upgrading actions to v4 to avoid CI/CD warnings --- .github/workflows/maven.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index fc1a72c..b177f16 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,22 +14,23 @@ jobs: steps: - name: Checkout... - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up JDK... - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} + distribution: 'temurin' - name: Retrieve mvn repo cache... - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-build-v1 restore-keys: ${{ runner.os }}-maven - name: Build and test... - run: mvn clean verify + run: mvn clean verify -U deploy: needs: build @@ -37,21 +38,22 @@ jobs: steps: - name: Checkout... - uses: actions/checkout@v2 + uses: actions/checkout@v4 # this action exports env.POM_VERSION variable - name: Export Maven coordinates... uses: bootique-tools/export-maven-coordinates-action@v1 - name: Set up JDK... - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 # skip this for the release versions if: contains(env.POM_VERSION, '-SNAPSHOT') with: java-version: 11 + distribution: 'temurin' - name: Retrieve mvn repo cache... - uses: actions/cache@v2 + uses: actions/cache@v4 # skip this for the release versions if: contains(env.POM_VERSION, '-SNAPSHOT') with: