awalsh128/Cache APT Packages
Install APT based packages and cache them for future runs.
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 4–6scored Jul 6, 2026
- Maintenance Recency
- Activelast commit Jun 30, 2026
- License
- None
Pinned Snippet
uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| packages | 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). | yes | "" |
| version | Version of cache to load. Each version will have its own cache. Note, all characters except spaces are allowed. | no | "" |
| execute_install_scripts | Execute Debian package pre and post install script upon restore. See README.md caveats for more information. | no | false |
| empty_packages_behavior | 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 | no | error |
| refresh | OBSOLETE: Refresh is not used by the action, use version instead. | — | — |
| debug | Enable debugging when there are issues with action. Minor performance penalty. | no | false |
| add-repository | Space delimited list of repositories to add via apt-add-repository before installing packages. Supports PPA (ppa:user/repo) and other repository formats. | no | "" |
Outputs
| name | description |
|---|---|
| cache-hit | A boolean value to indicate a cache was found for the packages requested. |
| package-version-list | 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 | 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>). |