2024-09-18 11:20:15 +08:00
|
|
|
name: "astral-sh/setup-uv"
|
2024-09-18 15:23:29 +08:00
|
|
|
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:
|
2024-09-05 05:14:10 +08:00
|
|
|
version:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "The version of uv to install"
|
2024-09-05 21:24:32 +08:00
|
|
|
default: "latest"
|
2024-08-24 05:58:26 +08:00
|
|
|
checksum:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "The checksum of the uv version to install"
|
2024-08-24 05:58:26 +08:00
|
|
|
required: false
|
|
|
|
github-token:
|
2024-09-05 05:14:10 +08:00
|
|
|
description:
|
2024-09-05 20:06:45 +08:00
|
|
|
"Used to increase the rate limit when retrieving versions and downloading
|
|
|
|
uv."
|
2024-08-24 05:58:26 +08:00
|
|
|
required: false
|
2024-09-11 16:18:23 +08:00
|
|
|
default: ${{ github.token }}
|
2024-08-24 05:58:26 +08:00
|
|
|
enable-cache:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "Enable caching of the uv cache"
|
|
|
|
default: "false"
|
2024-08-24 05:58:26 +08:00
|
|
|
cache-dependency-glob:
|
2024-09-05 05:14:10 +08:00
|
|
|
description:
|
2024-09-17 03:33:16 +08:00
|
|
|
"Glob pattern to match files relative to the repository root to control
|
|
|
|
the cache."
|
2024-09-17 03:08:44 +08:00
|
|
|
default: "**/uv.lock"
|
2024-08-24 05:58:26 +08:00
|
|
|
cache-suffix:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "Suffix for the cache key"
|
2024-08-24 05:58:26 +08:00
|
|
|
required: false
|
|
|
|
cache-local-path:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "Local path to store the cache."
|
2024-09-07 20:11:25 +08:00
|
|
|
default: ""
|
2024-10-25 20:11:32 +08:00
|
|
|
prune-cache:
|
|
|
|
description: "Prune cache before saving."
|
2024-11-23 23:30:54 +08:00
|
|
|
default: "true"
|
|
|
|
ignore-nothing-to-cache:
|
|
|
|
description: "Ignore when nothing is found to cache."
|
|
|
|
default: "false"
|
2024-09-21 16:14:36 +08:00
|
|
|
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:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "The installed uv version. Useful when using latest."
|
2024-08-24 05:58:26 +08:00
|
|
|
cache-hit:
|
2024-09-05 20:06:45 +08:00
|
|
|
description: "A boolean value to indicate a cache entry was found"
|
2024-08-24 05:58:26 +08:00
|
|
|
runs:
|
2024-09-05 20:06:45 +08:00
|
|
|
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:
|
2024-09-05 20:06:45 +08:00
|
|
|
icon: "package"
|
2024-09-18 11:20:15 +08:00
|
|
|
color: "black"
|