From 830941755bf87616a334930e0f45817c143eb7d3 Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Mon, 20 Apr 2020 11:13:49 +0200 Subject: [PATCH] use cache key depending on git sha --- .github/workflows/build.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7719511f2..a0efea260 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/cache@v1 with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-maven-${{ GITHUB_SHA }} restore-keys: | ${{ runner.os }}-maven- - name: Build with Maven @@ -46,9 +46,7 @@ jobs: - uses: actions/cache@v1 with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- + key: ${{ runner.os }}-maven-${{ GITHUB_SHA }} - name: Build with Maven run: mvn -B package -DskipTests --file main/pom.xml --resume-from=buildkit -Prelease - name: Upload buildkit-linux.zip