소스 검색

store to run-specific cache, but restore from any previous run

Sebastian Stenzel 5 년 전
부모
커밋
408d16fabf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .github/workflows/build.yml

+ 2 - 2
.github/workflows/build.yml

@@ -18,7 +18,7 @@ jobs:
       - uses: actions/cache@v1
         with:
           path: ~/.m2/repository
-          key: ${{ runner.os }}-maven-${{ GITHUB_SHA }}
+          key: ${{ runner.os }}-maven-${{ github.run_id }}
           restore-keys: |
             ${{ runner.os }}-maven-
       - name: Build with Maven
@@ -46,7 +46,7 @@ jobs:
       - uses: actions/cache@v1
         with:
           path: ~/.m2/repository
-          key: ${{ runner.os }}-maven-${{ GITHUB_SHA }}
+          key: ${{ runner.os }}-maven-${{ github.run_id }}
       - name: Build with Maven
         run: mvn -B package -DskipTests --file main/pom.xml --resume-from=buildkit -Prelease
       - name: Upload buildkit-linux.zip