mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-07-07 01:24:38 +00:00
47 lines
1.9 KiB
YAML
47 lines
1.9 KiB
YAML
name: "Cache APT Packages"
|
|
description: "Install APT based packages and cache them for future runs."
|
|
author: awalsh128
|
|
branding:
|
|
icon: "hard-drive"
|
|
color: "green"
|
|
|
|
inputs:
|
|
packages:
|
|
description: "Space delimited list of packages to install. Version can be specified optionally using APT command syntax of <name>=<version> (e.g. xdot=1.2-2)."
|
|
required: true
|
|
default: ""
|
|
version:
|
|
description: "Version of cache to load. Each version will have its own cache. Note, all characters except spaces are allowed."
|
|
required: false
|
|
default: ""
|
|
execute_install_scripts:
|
|
description: "Execute Debian package pre and post install script upon restore. See README.md caveats for more information."
|
|
required: false
|
|
default: "false"
|
|
empty_packages_behavior:
|
|
description: >
|
|
Desired behavior when the provided package list is empty.
|
|
|
|
Available Options:
|
|
error: Fail the action with an error message
|
|
warn: Output a warning without failing the action
|
|
ignore: Proceed silently without warnings or errors
|
|
required: false
|
|
default: "error"
|
|
debug:
|
|
description: "Enable debugging when there are issues with action. Minor performance penalty."
|
|
required: false
|
|
default: "false"
|
|
|
|
outputs:
|
|
cache-hit:
|
|
description: "A boolean value to indicate a cache was found for the packages requested."
|
|
package-version-list:
|
|
description: "The main requested packages and versions that are installed. Represented as a comma delimited list with equals delimit on the package version (i.e. <package>:<version,<package>:<version>)."
|
|
all-package-version-list:
|
|
description: "All the pulled in packages and versions, including dependencies, that are installed. Represented as a comma delimited list with equals delimit on the package version (i.e. <package>:<version,<package>:<version>)."
|
|
|
|
runs:
|
|
using: "node24"
|
|
main: "dist/index.js"
|