diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5feed8542..780e96629 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -90,6 +90,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - name: Move cache + if: endsWith(github.ref, 'heads/master') || endsWith(github.ref, 'heads/develop') run: | rm -rf /tmp/.buildx-cache mv /tmp/.buildx-cache-new /tmp/.buildx-cache