2024-09-05 20:06:45 +08:00
|
|
|
name: "Python setup uv"
|
|
|
|
description: "Set up your GitHub Actions workflow with a specific version of uv"
|
|
|
|
author: "eifinger"
|
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:
|
|
|
|
'Glob pattern to match files relative to the repository root to control
|
2024-09-17 03:08:44 +08:00
|
|
|
the cache.'
|
|
|
|
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-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"
|
|
|
|
color: "blue"
|