From b84a169cc58eb6c2813e07f770fdfcb6909c790d Mon Sep 17 00:00:00 2001 From: Hans Kristian Date: Thu, 16 Nov 2023 14:27:15 +0100 Subject: [PATCH 1/2] Update build.yml with new action versions --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0339c57..2756f08 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,11 +12,14 @@ jobs: name: build java ${{ matrix.java }} steps: - name: Checkout reposistory - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Set up java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} + distribution: temurin + server-id: github + cache: 'maven' - name: Build with Maven run: mvn -B package --no-transfer-progress --file pom.xml @@ -36,7 +39,7 @@ jobs: else TAG=${GITHUB_REF#refs/heads/}-SNAPSHOT fi - echo ::set-output name=version::${TAG//\//-} + echo "version=${TAG//\//-}" >> GITHUB_OUTPUT deploy_snapshot: if: startsWith(github.ref, 'refs/heads/') @@ -45,7 +48,7 @@ jobs: name: Deploy snapshot steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - uses: digipost/action-maven-publish@1.1.0 with: sonatype_secrets: ${{ secrets.sonatype_secrets }} @@ -59,7 +62,7 @@ jobs: name: Release to Sonatype steps: - name: Check out Git repository - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Release to Central Repository uses: digipost/action-maven-publish@1.1.0 with: From e5d56f42cc8bb57d32e527a7144b5f278cbb0921 Mon Sep 17 00:00:00 2001 From: Hans Kristian Date: Thu, 16 Nov 2023 14:29:59 +0100 Subject: [PATCH 2/2] Fix typo in $GITHUB_OUTPUT --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2756f08..ddd6d1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: else TAG=${GITHUB_REF#refs/heads/}-SNAPSHOT fi - echo "version=${TAG//\//-}" >> GITHUB_OUTPUT + echo "version=${TAG//\//-}" >> $GITHUB_OUTPUT deploy_snapshot: if: startsWith(github.ref, 'refs/heads/')