From ff7f6adb02a61d7524bf5b960bb45e23e5236572 Mon Sep 17 00:00:00 2001 From: Timon Lukas Date: Sun, 19 Jun 2022 02:32:21 +0200 Subject: [PATCH] Update action.yml --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 781ff2c..c16979e 100644 --- a/action.yml +++ b/action.yml @@ -33,14 +33,15 @@ runs: run: | echo "::set-output name=executable::$(pwd)/${{ inputs.executable-name }}" echo "::set-output name=temp::$(mktemp -d)" - - name: Create static symlink to temp directory to work around actions/cache#815 + - if: ${{ inputs.cache }} + name: Create static symlink to temp directory to work around actions/cache#815 shell: bash run: ln -snf ${{ steps.paths.outputs.temp }} /tmp/.action-static-redbean - if: ${{ inputs.cache }} id: cache uses: actions/cache@v3 with: - path: /tmp/.action-static-redbean + path: /tmp/.action-static-redbean/redbean.com key: action-static-redbean-${{ inputs.version }} - if: ${{ !inputs.cache || steps.cache.outputs.cache-hit != 'true' }} name: Fetch redbean-${{ inputs.version }}.com