From 1b5c66085507f18351384873046ea150d7c00b49 Mon Sep 17 00:00:00 2001 From: "tobias.pobocik" Date: Wed, 27 Nov 2024 11:32:01 +0100 Subject: [PATCH] Update actions/cache to v4 Update these deprecated actions to latest v4 version: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/ https://github.com/actions/cache/blob/main/examples.md#java---maven JIRA: LIGHTY-344 Signed-off-by: tobias.pobocik (cherry picked from commit 855d912966460b878f89aa1183c8d78978d50a9d) --- .github/workflows/build.yml | 4 ++-- .github/workflows/publish-docker-helm.yml | 2 +- .github/workflows/publish-rcgnmi.yml | 2 +- .github/workflows/publish-rnc.yml | 2 +- .github/workflows/test-lighty-app.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1240d5c38..ef8f36e0ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,14 +26,14 @@ jobs: java-version: 17 distribution: 'temurin' - name: Cache SonarCloud packages - uses: actions/cache@v1 + uses: actions/cache@v4 if: ${{ env.SONAR_TOKEN != 0 }} with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/publish-docker-helm.yml b/.github/workflows/publish-docker-helm.yml index b31e77f5bc..7878d07853 100644 --- a/.github/workflows/publish-docker-helm.yml +++ b/.github/workflows/publish-docker-helm.yml @@ -55,7 +55,7 @@ jobs: java-version: 17 distribution: 'temurin' - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/publish-rcgnmi.yml b/.github/workflows/publish-rcgnmi.yml index f695772300..d4fc13e8b7 100644 --- a/.github/workflows/publish-rcgnmi.yml +++ b/.github/workflows/publish-rcgnmi.yml @@ -43,7 +43,7 @@ jobs: java-version: 17 distribution: 'temurin' - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/publish-rnc.yml b/.github/workflows/publish-rnc.yml index 334e0bc38f..3ab8121481 100644 --- a/.github/workflows/publish-rnc.yml +++ b/.github/workflows/publish-rnc.yml @@ -43,7 +43,7 @@ jobs: java-version: 17 distribution: 'temurin' - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/test-lighty-app.yml b/.github/workflows/test-lighty-app.yml index e26c4177a5..5a0341f560 100644 --- a/.github/workflows/test-lighty-app.yml +++ b/.github/workflows/test-lighty-app.yml @@ -28,7 +28,7 @@ jobs: java-version: 17 distribution: 'temurin' - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}