use cache key depending on git sha

This commit is contained in:
Sebastian Stenzel
2020-04-20 11:13:49 +02:00
parent 84cc81ec40
commit 830941755b

View File

@@ -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