From 1316bc71299216e0d0e19cecc21e69b54a6a3aa6 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 28 Jun 2026 21:06:27 +0530 Subject: [PATCH] Add uv cache toggle Signed-off-by: Chirag Aggarwal --- README.md | 2 ++ action.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index adf1de2..5c183d4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ For more information on inputs, see the [API Documentation](https://developer.gi - `version`: The chart-testing version to install (default: `3.14.0`) - `yamllint_version`: The `yamllint` version to install (default: `1.33.0`) - `yamale_version`: The `yamale` version to install (default: `6.0.0`) +- `uv_version`: The `uv` version to install (default: `latest`) +- `uv_enable_cache`: Enable `uv` cache. Supported values: `true`, `false`, `auto` (default: `auto`) ### Example Workflow diff --git a/action.yml b/action.yml index 1b657d2..e300182 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,10 @@ inputs: description: "The uv version to install (default: latest)" required: false default: 'latest' + uv_enable_cache: + description: "Enable uv cache. Supported values: true, false, auto." + required: false + default: 'auto' runs: using: composite steps: @@ -28,6 +32,7 @@ runs: - uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0 with: version: ${{ inputs.uv_version }} + enable-cache: ${{ inputs.uv_enable_cache }} - run: | cd $GITHUB_ACTION_PATH \ && ./ct.sh \