setup-uv/action.yml

54 lines
1.5 KiB
YAML
Raw Normal View History

2024-09-18 11:20:15 +08:00
name: "astral-sh/setup-uv"
description:
"Set up your GitHub Actions workflow with a specific version of uv."
2024-09-18 11:20:15 +08:00
author: "astral-sh"
2024-08-24 05:58:26 +08:00
inputs:
version:
description: "The version of uv to install"
default: "latest"
2024-08-24 05:58:26 +08:00
checksum:
description: "The checksum of the uv version to install"
2024-08-24 05:58:26 +08:00
required: false
github-token:
description:
"Used to increase the rate limit when retrieving versions and downloading
uv."
2024-08-24 05:58:26 +08:00
required: false
default: ${{ github.token }}
2024-08-24 05:58:26 +08:00
enable-cache:
description: "Enable caching of the uv cache"
default: "false"
2024-08-24 05:58:26 +08:00
cache-dependency-glob:
description:
2024-09-17 03:33:16 +08:00
"Glob pattern to match files relative to the repository root to control
the cache."
default: "**/uv.lock"
2024-08-24 05:58:26 +08:00
cache-suffix:
description: "Suffix for the cache key"
2024-08-24 05:58:26 +08:00
required: false
cache-local-path:
description: "Local path to store the cache."
default: ""
prune-cache:
description: "Prune cache before saving."
default: true
tool-dir:
description: "Custom path to set UV_TOOL_DIR to."
required: false
tool-bin-dir:
description: "Custom path to set UV_TOOL_BIN_DIR to."
required: false
2024-08-24 05:58:26 +08:00
outputs:
uv-version:
description: "The installed uv version. Useful when using latest."
2024-08-24 05:58:26 +08:00
cache-hit:
description: "A boolean value to indicate a cache entry was found"
2024-08-24 05:58:26 +08:00
runs:
using: "node20"
main: "dist/setup/index.js"
post: "dist/save-cache/index.js"
2024-08-24 05:58:26 +08:00
post-if: success()
branding:
icon: "package"
2024-09-18 11:20:15 +08:00
color: "black"