From e94d440feac866b199b957ba55a0856acaa255ad Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Mon, 9 Sep 2024 15:33:52 +0200 Subject: [PATCH] Fix quotings (#18) * Fix quotings * Ask uv for cache dir * extract --- action.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 80d4394..07aecf7 100644 --- a/action.yml +++ b/action.yml @@ -44,8 +44,7 @@ runs: UV_CACHE_DIR="${{ inputs.uv-cache-path }}" fi - echo "UV_CACHE_DIR=\"$UV_CACHE_DIR\"" >>$GITHUB_ENV - echo "uv cache dir is $UV_CACHE_DIR" + echo "UV_CACHE_DIR=$UV_CACHE_DIR" >>$GITHUB_ENV curl \ --location \ @@ -66,13 +65,16 @@ runs: $UV_CACHE_DIR = "${{ inputs.uv-cache-path }}" } - echo "UV_CACHE_DIR=${{ inputs.uv-cache-path }}" >> $env:GITHUB_ENV - Write-Output "uv cache dir is $UV_CACHE_DIR" + echo "UV_CACHE_DIR=$UV_CACHE_DIR" >> $env:GITHUB_ENV irm https://astral.sh/uv/install.ps1 | iex shell: pwsh if: runner.os == 'Windows' + - name: Check cache dir + shell: bash + run: echo "uv cache dir is $(uv cache dir)" + - name: Compute cache key suffix by hashing ${{ inputs.cache-dependency-path }} run: > echo