From 7f0b9b1c56591c65fca2a40f5d8d9ee9026c6773 Mon Sep 17 00:00:00 2001 From: Jens Kutzsche Date: Thu, 14 Apr 2022 10:42:37 +0200 Subject: [PATCH] chore(Build): try to fix an error with `actions/setup-java` --- .github/workflows/codeql-analysis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 048387afd..d05d31854 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -33,7 +33,14 @@ jobs: with: distribution: 'liberica' java-version: '17' - cache: 'maven' + + - name: Cache local Maven repository + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL