Commit graph

227 commits

Author SHA1 Message Date
Mahyar McDonald 29f7e61cfc
Merge 2940bf37eb into c0e0741be6 2026-06-13 16:25:09 -07:00
George Joseph c0e0741be6
install_and_cache_pkgs.sh: Fix two issues saving preinst and postinst scripts. (#195)
1.  The logic for listing the files to be cached was using `&&`s between
the listing of the package files, the preinst script and postinst script.
Therefore if there wasn't a preinst script, a postinst script wasn't
checked for.

2. get_install_script_filepath was being passed an empty root file path
so it would never find any files.

Resolves: #194
2026-06-13 16:24:40 -07:00
Copilot 497648d2e1
Apply PR #193 dependency pinning to action.yml (overwrite current action refs) (#201)
* Bump actions/cache off of Node 20

* Bump actions/upload-artifact off of Node 20

---------

Co-authored-by: Sebastian P <241632094+immoseb@users.noreply.github.com>
2026-06-13 16:16:10 -07:00
Paul Keen 681749ae56
fix: upgrade actions/cache v4→v5 and upload-artifact v4→v7 (Node 24) (#198)
Node.js 20 actions are deprecated — GitHub will force Node.js 24
starting June 2, 2026.

- actions/cache/restore v4 → v5
- actions/cache/save v4 → v5
- actions/upload-artifact v4.6.2 → v7

Using version tags for clarity.

See: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
2026-06-13 16:02:10 -07:00
Mahyar McDonald 2940bf37eb nicer error msg 2025-11-04 08:59:25 -08:00
Mahyar McDonald c26ef59a6a comment 2025-11-03 19:18:21 -08:00
Mahyar McDonald 3b480a1e9b force local lint test 2025-11-03 19:10:33 -08:00
Mahyar McDonald a94ac1b452 shell comment 2025-11-03 19:05:03 -08:00
Mahyar McDonald 99020146f7 use local linter var 2025-11-03 19:02:30 -08:00
Mahyar McDonald ca3adab5d7 still need that log update it looks like 2025-11-03 18:59:08 -08:00
Mahyar McDonald c1d50d16d0 bugbot + cleanup 2025-11-03 18:56:49 -08:00
Mahyar McDonald 24174d139b clean up stuff 2025-11-03 18:52:54 -08:00
Mahyar McDonald 6495eb45ff wow shell is bad 2025-11-03 18:40:17 -08:00
Mahyar McDonald c81b0c1652 boop 2025-11-03 18:38:14 -08:00
Mahyar McDonald f49eb3386b more shell bullshit 2025-11-03 18:33:49 -08:00
Mahyar McDonald 6248207460 aptfile 2025-11-03 18:15:27 -08:00
Mahyar McDonald 2305a5f8a5 apt-query verify 2025-11-03 18:12:22 -08:00
Mahyar McDonald 1e76f95692 test with go code changes 2025-11-03 18:08:51 -08:00
Mahyar McDonald e81159c6fb tweak more 2025-11-03 18:06:04 -08:00
Mahyar McDonald 016fa9564d better create_list 2025-11-03 17:53:19 -08:00
Mahyar McDonald 0f3356b902 update go test 2025-11-03 17:45:36 -08:00
Mahyar McDonald d0bb53f685 enterprise policy skip 2025-11-03 17:42:40 -08:00
Mahyar McDonald a96225340d dedup and fix debug log and test in pr action 2025-11-03 17:38:36 -08:00
Mahyar McDonald 0957ded375 more debug logging 2025-11-03 17:13:07 -08:00
Mahyar McDonald ac7844076b work around the Reverse=Provides: being emitted by the go binary 2025-11-03 16:52:57 -08:00
Mahyar McDonald 9a222f7e76 some better logging 2025-11-03 16:29:47 -08:00
Mahyar McDonald dfb27081dc fix some package hash getting bad input? 2025-11-03 15:53:06 -08:00
Mahyar McDonald 32569df7e7 add setting to disable Aptfile usage 2025-10-31 12:32:16 -07:00
Mahyar McDonald 8a1823b41e aptfile support 2025-10-31 12:04:24 -07:00
Dane Wilson acb598e5dd
Pin actions for immutable and secure dependency versions (#175)
Pin dependency actions per security best practices.

https://github.blog/changelog/2025-08-15-github-actions-policy-now-supports-blocking-and-sha-pinning-actions
2025-10-03 23:35:39 -07:00
Copilot 23602f4229
Add support for third-party PPA repositories via add-repository parameter (#173)
* Initial plan

* Add add-repository parameter support for third-party PPAs

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Add validation and complete PPA repository support implementation

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

* Remove accidentally committed log file and update .gitignore

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
2025-09-30 01:06:22 -07:00
Copilot 2ae65d5bbf
Fix ls error when no tar files exist in cache restore (#170)
* Initial plan

* Fix ls error when no tar files exist in cache restore

Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
2025-09-30 01:06:02 -07:00
awalsh128 9f7a885e33 Support symlinks and their targets. 2025-08-29 21:40:34 -07:00
Takahiro Ueda a605dbde2a
Add empty_packages_behavior option to handle empty package list (#154)
Available options: 'error' (default), 'warn' and 'ignore'.
2025-08-16 19:34:34 -07:00
awalsh128 2c09a5e66d Binary for https://github.com/awalsh128/cache-apt-pkgs-action/pull/160 2025-08-10 17:15:27 -07:00
Sébastien Morais 9a146f43d1
fix: skip invalid lines (#160) 2025-08-10 17:11:12 -07:00
Mike Tesch cbdbab28e6
Automatically append the OS architecture to the cache key (#150) 2025-08-10 13:24:23 -07:00
Andrew Walsh 23ccb675d9
Update README.md 2025-07-07 20:37:29 -07:00
Andrew Walsh db548ecc55
Update README.md 2025-07-07 20:35:48 -07:00
Khyber Sen 4c82c3ccdc
Remove GitHub URL shorteners (git.io) as they no longer work. (#164)
Fixes #163.
2025-07-07 20:15:12 -07:00
awalsh128 7ca5f46d06 Fix exec error. 2025-03-16 14:39:03 -07:00
Andrew Walsh 2330cb6dfb
Add support for virtual packages and break out APT logic into common library. (#155)
* Add support for virtual packages and break out APT logic into common library.
* Update binaries from commit 128de25ccb
2025-03-16 13:05:35 -07:00
Andrew Walsh 128de25ccb
Add support for virtual packages and break out APT logic into common library. (#153) 2025-03-16 12:35:38 -07:00
Bradley Scott 13d2226e13
Avoid using xargs when creating package tarballs (#136) 2025-02-04 10:08:04 -08:00
Ülgen Sarıkavak d1a184e480
Update actions/checkout versions in README (#148) 2025-02-03 11:42:51 -08:00
Jacco Broeren dfe9c8af34
fix: remove timestamps from loglines (#146) 2025-01-23 20:00:46 -08:00
Max Schwenk 5902b33ae2
Upgrade to cache v4 (#140) 2025-01-09 11:16:31 -08:00
Andrew Walsh f2fc6d1af4 Explicitly don't fail on error in library calls (required for conditonals) 2024-03-03 14:39:27 -08:00
Oliver Kopp a6c3917cc9
Add arm64 binary (#127)
* Add support for arm64 APT in Go apt-query binary.
2024-03-01 12:59:14 -08:00
Andrew Walsh 2555a377df
Bump force reload to accommodate update on cache action save version. #122 2024-02-13 21:42:01 -08:00