From 99dd670a1185318b61624f3af243fa2508e3c95e Mon Sep 17 00:00:00 2001 From: erabii Date: Tue, 1 Oct 2024 15:35:31 +0300 Subject: [PATCH] Restore common images by key (pipeline bug) (#1749) --- .../workflows/composites/restore-docker-images/action.yaml | 4 ++-- .github/workflows/maven.yaml | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/composites/restore-docker-images/action.yaml b/.github/workflows/composites/restore-docker-images/action.yaml index f6d77c5c..615f632d 100644 --- a/.github/workflows/composites/restore-docker-images/action.yaml +++ b/.github/workflows/composites/restore-docker-images/action.yaml @@ -29,8 +29,8 @@ runs: uses: actions/cache/save@v4 if: steps.images-cache.outputs.cache-hit != 'true' with: - path: | - /tmp/docker/images + path: /tmp/docker/images + key: docker-images-github-cache-${{ hashFiles('**/current-images.txt') }} - name: print images shell: bash diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml index 71962821..8c6e6afc 100644 --- a/.github/workflows/maven.yaml +++ b/.github/workflows/maven.yaml @@ -48,9 +48,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, }) - for (const cache of caches.data.actions_caches) { - console.log(cache) - } + console.log(caches.data) - name: maven build with dry-run for tests uses: ./.github/workflows/composites/maven-build-with-dry-run-for-tests