Commit graph

28 commits

Author SHA1 Message Date
awalsh128 971da5988a Standardize syntax, name casing and fix package versioning feature. 2023-03-23 20:20:24 -07:00
Andrew Walsh 51678ad913
Execute installation scripts feature, debug mode, and permission denied fix. (#65)
* Execute installation scripts and debug mode features. (#64)

* Provide the ability to call Debian package manager installation scripts (i.e. `*.[preinst, postinst]`).
* Introduce a debug mode that runs the scripts in verbose mode and uploads the logs for retrieval.
* Updated README to reflect new features and provided more info on how to use the action versions.

* Dev (#66)

* Fix permission denied error.

* Fix permission denied error. (#51)

* Remove compression from file caching. (#53)

* Draft of postinst support from issue #44.

* Remove bad option.

* Removed extraneous line.

* Cover no packages edge case when writing manifest.

* Fix postinst bugs and add docs to lib.

* Made cache directory variable and more refinements to postinst.

* Update deprecated option.

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

* Rollback accidental commit of new postinst feature.

* Minor edit ands full install script execution FR.

* Fix execute_install_scripts message to show the right param name.

* Fix param check.

* Minor fix to doc.

* Upload action logs for debugging.

* Make artifact names unique.

* Add debug option.

* Update description.

* Debug package list issue.

* Rollback 76128c60a1

* Revert outputs set behavior to see if it fixes outputs issue in dev.

* Restore updated outputs behavior. So strange it is working when I revert.

* Fix bugs in install script execution.

* Add error suppression on file testing.

* Debug feature.

* Link to the issue that started the postinst troubleshooting.

* Describe action version usage.

* Fix package outputs command.
2022-11-23 22:24:00 -08:00
Andrew Walsh c5df606b25
Optimize installs with apt-fast and various minor cleanups. (#35)
* Fix cut regression.

Originally fixed in #17. This was reintroduced when master was sync'd to staging.

* Update pre_cache_action.sh

* Switch to CLI safe apt command.

Address concern in issue #23.

* Optimize installs with apt-fast and cleanup logging.
2022-07-23 17:06:17 -07:00
awalsh128 b61cf9a6f1 Copy from staging to dev. 2022-07-19 20:42:48 -07:00
Andrew Walsh 2719bca2f4
Merge branch 'dev' into staging 2022-06-03 21:04:43 -07:00
Andrew Walsh 17cdbf8735
Revert "Cache non explicitly listed packages" 2022-06-03 20:30:40 -07:00
awalsh128 e68df30bd6 Experimental version. Cleaned up syntax and created common library functions. 2022-03-26 12:42:40 -07:00
Nate Bohman 6d622023ef
Also Cache Non-Explicitly Listed APT PKGs
Apt installs more packages than just those explicitly listed. This can
lead to issues of missing files when the cache is restored.
2022-03-18 09:39:17 -06:00
awalsh128 edd1138fdd Write out manifest. 2021-10-21 23:28:06 -07:00
awalsh128 db1f7473f6 Separate out version on manifest reporting. 2021-10-21 22:44:51 -07:00
awalsh128 dca3d33521 Get rid of package variables. 2021-10-21 22:42:51 -07:00
awalsh128 1decb12863 Filter packages correctly. 2021-10-21 22:27:23 -07:00
awalsh128 13b8ebb8f7 Fix package number reported. 2021-10-21 22:16:49 -07:00
awalsh128 9ca1c60417 Add more reporting to restore phase. 2021-10-21 22:15:05 -07:00
awalsh128 6d2730c8bf Fix manifest location. 2021-10-21 22:01:57 -07:00
awalsh128 b67439fdd6 Only search for archives in cache directory. 2021-10-21 21:45:37 -07:00
awalsh128 2516d0fc19 Minor edit to reporting. 2021-10-21 21:43:24 -07:00
awalsh128 e5a9854ee1 Consolidate steps, and make reporting less verbose. 2021-10-21 20:57:52 -07:00
awalsh128 aa046d0049 Merge branch 'master' of https://github.com/awalsh128/cache-apt-pkgs-action 2021-10-21 15:34:51 -07:00
awalsh128 ca95c0de72 Add better messaging. 2021-10-21 12:41:47 -07:00
Andrew Walsh 7a7e2ba767
Remove APT upgrade on restore.
This could affect performance and make the action moot. Will add better version reporting so the user knows what cache they are locking into.
2021-10-20 20:31:24 -07:00
awalsh128 08d1b85370 Add better diagnostics. 2021-10-16 21:45:24 -07:00
awalsh128 e558e74c19 Full qualify paths. 2021-10-16 21:23:27 -07:00
awalsh128 6c13cf414f Fail script on any error. 2021-10-16 21:17:55 -07:00
awalsh128 91e3a98133 Update packages after restore. 2021-10-16 13:00:45 -07:00
awalsh128 93efeeaebb Fix package count reporting. 2021-10-16 12:58:23 -07:00
awalsh128 6dbaadfc1e Fix script syntax. 2021-10-16 11:34:14 -07:00
awalsh128 b07ee5cce8 Initial commit. 2021-10-13 21:11:27 -07:00