awalsh128/Cache APT Packages

Install APT based packages and cache them for future runs.

View on GitHub

Trust Signals

Scorecard Score
Scorecard 4–6scored Jul 6, 2026
Maintenance Recency
Activelast commit Jun 30, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
packagesSpace delimited list of packages to install. Version can be specified optionally using APT command syntax of <name>=<version> (e.g. xdot=1.2-2).yes""
versionVersion of cache to load. Each version will have its own cache. Note, all characters except spaces are allowed.no""
execute_install_scriptsExecute Debian package pre and post install script upon restore. See README.md caveats for more information.nofalse
empty_packages_behaviorDesired 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 noerror
refreshOBSOLETE: Refresh is not used by the action, use version instead.
debugEnable debugging when there are issues with action. Minor performance penalty.nofalse
add-repositorySpace delimited list of repositories to add via apt-add-repository before installing packages. Supports PPA (ppa:user/repo) and other repository formats.no""
namedescription
cache-hitA boolean value to indicate a cache was found for the packages requested.
package-version-listThe 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-listAll 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>).