Explorar o código

CI: Fix service check workflow using outdated cache

derrod %!s(int64=3) %!d(string=hai) anos
pai
achega
8865f87f1b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      .github/workflows/services-json.yml

+ 4 - 1
.github/workflows/services-json.yml

@@ -58,7 +58,10 @@ jobs:
         uses: actions/cache@v3
         with:
           path: ${{ github.workspace }}/other
-          key: service-check
+          # Workaround to create a new cache every time, since a cache key is immutable:
+          # https://github.com/actions/cache/blob/main/workarounds.md#update-a-cache
+          key: service-check-${{ github.run_id }}
+          restore-keys: service-check
 
       - name: Install & Configure Python
         run: |