diff --git a/.github/workflows/build-2.x.yaml b/.github/workflows/build-2.x.yaml index c6164fbefc7e..a00be35a3e9c 100644 --- a/.github/workflows/build-2.x.yaml +++ b/.github/workflows/build-2.x.yaml @@ -35,7 +35,7 @@ jobs: distribution: 'adopt' java-version: ${{ matrix.java-version }} - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b139ab896fda..9f1e234e6145 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,13 +34,13 @@ jobs: distribution: 'adopt' java-version: ${{ matrix.java-version }} - name: Cache Maven packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - name: Cache SonarCloud packages - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.sonar/cache key: ${{ runner.os }}-sonar