From 2ef10d3f65ae87372b5a8b776a273880667add71 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 15 Feb 2024 14:37:42 +0100 Subject: [PATCH] Update github actions to latest versions Motivation: We should keep our actions up to date. Modifications: Upgrade all github actions to latest releases Result: Housekeeping --- .github/workflows/ci-build.yml | 2 +- .github/workflows/ci-deploy.yml | 12 ++++++------ .github/workflows/ci-pr-reports.yml | 4 ++-- .github/workflows/ci-pr.yml | 12 ++++++------ .github/workflows/ci-release.yml | 24 ++++++++++++------------ 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index e5fcc8f6..602e675c 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -46,7 +46,7 @@ jobs: - uses: actions/checkout@v4 # Cache .m2/repository - - uses: actions/cache@v3 + - uses: actions/cache@v4 continue-on-error: true with: path: ~/.m2/repository diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml index 5cf7869d..624195d1 100644 --- a/.github/workflows/ci-deploy.yml +++ b/.github/workflows/ci-deploy.yml @@ -45,7 +45,7 @@ jobs: - uses: actions/checkout@v4 # Cache .m2/repository - - uses: actions/cache@v3 + - uses: actions/cache@v4 continue-on-error: true with: path: ~/.m2/repository @@ -63,7 +63,7 @@ jobs: run: docker-compose ${{ matrix.docker-compose-run }} - name: Upload local staging directory - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.setup }}-local-staging path: ~/local-staging @@ -76,7 +76,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 8 distribution: zulu @@ -101,13 +101,13 @@ jobs: # Hardcode the staging artifacts that need to be downloaded. # These must match the matrix setups. There is currently no way to pull this out of the config. - name: Download linux-aarch64 staging directory - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: linux-aarch64-local-staging path: ~/linux-aarch64-local-staging - name: Download linux-x86_64 staging directory - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: linux-x86_64-local-staging path: ~/linux-x86_64-local-staging @@ -117,7 +117,7 @@ jobs: - name: Merge staging repositories run: bash ./.github/scripts/merge_local_staging.sh ~/local-staging ~/linux-aarch64-local-staging ~/linux-x86_64-local-staging - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@v3 with: servers: | [{ diff --git a/.github/workflows/ci-pr-reports.yml b/.github/workflows/ci-pr-reports.yml index 320c9edc..a6c3c10c 100644 --- a/.github/workflows/ci-pr-reports.yml +++ b/.github/workflows/ci-pr-reports.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download Artifacts - uses: dawidd6/action-download-artifact@v2.28.0 + uses: dawidd6/action-download-artifact@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} workflow: ${{ github.event.workflow_run.workflow_id }} @@ -34,7 +34,7 @@ jobs: name: test-results-build-pr-ubuntu - name: Publish Test Report - uses: scacap/action-surefire-report@v1.7.2 + uses: scacap/action-surefire-report@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} report_paths: '**/target/surefire-reports/TEST-*.xml' diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index b3e46255..d5e776d6 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -31,13 +31,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 8 distribution: zulu # Cache .m2/repository - - uses: actions/cache@v3 + - uses: actions/cache@v4 continue-on-error: true env: cache-name: verify-cache-m2-repository @@ -68,7 +68,7 @@ jobs: - uses: actions/checkout@v4 # Cache .m2/repository - - uses: actions/cache@v3 + - uses: actions/cache@v4 continue-on-error: true with: path: ~/.m2/repository @@ -103,7 +103,7 @@ jobs: sudo apt-get install -q -y autoconf automake git libtool - uses: actions/checkout@v4 - - uses: actions/cache@v3 + - uses: actions/cache@v4 continue-on-error: true env: cache-name: build-pr-ubuntu-cache @@ -122,12 +122,12 @@ jobs: - name: Upload Test Results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-results-build-pr-ubuntu path: '**/target/surefire-reports/TEST-*.xml' - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: ${{ failure() }} with: name: build-target-pr-ubuntu diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml index 43455249..48e10dc0 100644 --- a/.github/workflows/ci-release.yml +++ b/.github/workflows/ci-release.yml @@ -31,13 +31,13 @@ jobs: ref: main - name: Set up JDK 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 8 distribution: zulu # Cache .m2/repository - - uses: actions/cache@v3 + - uses: actions/cache@v4 continue-on-error: true env: cache-name: release-cache-m2-repository @@ -68,7 +68,7 @@ jobs: run: ./.github/scripts/release_checkout_tag.sh release.properties - name: Upload workspace - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: prepare-release-workspace path: ${{ github.workspace }}/** @@ -88,7 +88,7 @@ jobs: name: stage-release-${{ matrix.setup }} steps: - name: Download release-workspace - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: prepare-release-workspace path: ./prepare-release-workspace/ @@ -97,7 +97,7 @@ jobs: run: chmod 755 ./prepare-release-workspace/mvnw - name: Set up JDK 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 8 distribution: zulu @@ -120,7 +120,7 @@ jobs: working-directory: ./prepare-release-workspace/ run: docker-compose ${{ matrix.docker-compose-build }} - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@v3 with: servers: | [{ @@ -138,7 +138,7 @@ jobs: run: docker-compose ${{ matrix.docker-compose-run }} - name: Upload local staging directory - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.setup }}-local-staging path: ~/local-staging @@ -155,7 +155,7 @@ jobs: needs: stage-release steps: - name: Download release-workspace - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: prepare-release-workspace path: ./prepare-release-workspace/ @@ -175,20 +175,20 @@ jobs: known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} - name: Set up JDK 8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 8 # Hardcode the staging artifacts that need to be downloaded. # These must match the matrix setups. There is currently no way to pull this out of the config. - name: Download linux-aarch64 staging directory - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: linux-aarch64-local-staging path: ~/linux-aarch64-local-staging - name: Download linux-x86_64 staging directory - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: linux-x86_64-local-staging path: ~/linux-x86_64-local-staging @@ -199,7 +199,7 @@ jobs: working-directory: ./prepare-release-workspace/ run: bash ./.github/scripts/merge_local_staging.sh /home/runner/local-staging/staging ~/linux-aarch64-local-staging/staging ~/linux-x86_64-local-staging/staging - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@v3 with: servers: | [{