2023-02-21 23:52:09 -06:00
|
|
|
name: rtx action
|
2023-01-14 08:36:43 -06:00
|
|
|
description: Actions for working with rtx runtime manager
|
2023-08-27 12:12:44 -05:00
|
|
|
author: Jeff Dickey <@jdx>
|
2023-02-21 23:26:41 -06:00
|
|
|
branding:
|
|
|
|
icon: arrow-down-circle
|
|
|
|
color: purple
|
2023-01-14 08:11:40 -06:00
|
|
|
inputs:
|
2023-12-14 06:39:54 -06:00
|
|
|
version:
|
|
|
|
required: false
|
2023-12-14 08:38:00 -06:00
|
|
|
description: The version of rtx to use. If not specified, will use the latest release.
|
|
|
|
rtx_dir:
|
|
|
|
required: false
|
|
|
|
description: |
|
|
|
|
The directory that rtx will be installed to, defaults to $HOME/.local/share/rtx
|
|
|
|
Or $XDG_DATA_HOME/rtx if $XDG_DATA_HOME is set.
|
|
|
|
Or $RTX_DATA_DIR if $RTX_DATA_DIR is set.
|
2023-01-14 08:36:43 -06:00
|
|
|
tool_versions:
|
|
|
|
required: false
|
|
|
|
description: If present, this value will be written to the .tool-versions file
|
2023-12-14 07:56:58 -06:00
|
|
|
rtx_toml:
|
|
|
|
required: false
|
|
|
|
description: If present, this value will be written to the .rtx.toml file
|
2023-09-15 09:49:51 +09:00
|
|
|
install:
|
|
|
|
required: false
|
2023-10-16 19:18:57 -05:00
|
|
|
default: "true"
|
2023-12-14 08:38:00 -06:00
|
|
|
description: if false, will not run `rtx install`
|
|
|
|
install_dir:
|
|
|
|
required: false
|
|
|
|
default: "."
|
|
|
|
description: The directory that `rtx install` will be executed in
|
2023-12-12 16:04:07 -05:00
|
|
|
cache:
|
|
|
|
required: false
|
|
|
|
default: "true"
|
2023-12-14 08:38:00 -06:00
|
|
|
description: if false, action will not read or write to cache
|
|
|
|
cache_save:
|
|
|
|
required: false
|
|
|
|
default: "true"
|
|
|
|
description: if false, action will not write to cache
|
|
|
|
cache_key_prefix:
|
|
|
|
required: false
|
|
|
|
default: "rtx-v0"
|
|
|
|
description: The prefix key to use for the cache, change this to invalidate the cache
|
2023-08-18 11:29:16 -04:00
|
|
|
outputs:
|
2023-04-10 20:36:00 -04:00
|
|
|
cache-hit:
|
2023-12-14 08:38:00 -06:00
|
|
|
description: A boolean value to indicate if a cache was hit.
|
2023-01-14 08:11:40 -06:00
|
|
|
runs:
|
2023-10-16 19:18:57 -05:00
|
|
|
using: node20
|
2023-01-14 08:36:43 -06:00
|
|
|
main: dist/index.js
|
2023-04-10 20:36:00 -04:00
|
|
|
post: dist/cache-save/index.js
|
|
|
|
post-if: success()
|