From 4b678f201d5332e31f37b349b4839cd989b17bee Mon Sep 17 00:00:00 2001 From: Googol Lee Date: Fri, 13 Sep 2024 16:11:29 +0200 Subject: [PATCH] Fix cache pushing problem. (#1052) --- .github/workflows/dependencies.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml index 3df4f163..5aecb2bd 100644 --- a/.github/workflows/dependencies.yml +++ b/.github/workflows/dependencies.yml @@ -61,8 +61,8 @@ jobs: push: ${{ env.IS_PUSHING_IMAGES }} tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} - cache-from: ${{ env.IS_CACHING == 'true' && 'type=gha' }} - cache-to: ${{ env.IS_CACHING == 'true' && 'type=gha,mode=max' }} + cache-from: ${{ ( env.IS_CACHING == 'true' && 'type=gha' ) || '' }} + cache-to: ${{ ( env.IS_CACHING == 'true' && 'type=gha,mode=max' ) || '' }} no-cache: ${{ env.IS_CACHING != 'true' }} sbom: true provenance: mode=max