Add support for third-party PPA repositories via add-repository parameter#173
Merged
awalsh128 merged 4 commits intoSep 30, 2025
Merged
Conversation
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
Co-authored-by: awalsh128 <2087466+awalsh128@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Suggestion: Add support for third-party PPA
Add support for third-party PPA repositories via add-repository parameter
Sep 30, 2025
awalsh128
approved these changes
Sep 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements support for adding third-party PPA repositories before package installation, addressing issue #95. Users can now specify custom repositories using the new
add-repositoryparameter.Problem
Previously, the action only supported packages from the default Ubuntu repositories. Users who needed packages from third-party PPAs (like the Chromium browser example in the issue) had to manually add repositories in separate steps, losing the benefits of the action's caching mechanism.
Solution
Added a new
add-repositoryinput parameter that accepts a space-delimited list of repositories to add viaapt-add-repositorybefore installing packages. The implementation:apt-add-repository -yfor each specified repositoryUsage Examples
Install Chromium browser from PPA (the original motivating use case):
Add multiple repositories:
Implementation Details
action.yml→pre_cache_action.sh→post_cache_action.sh→install_and_cache_pkgs.shppa:user/repo), HTTP/HTTPS URLs, standard repository names likemultiverseTesting
The implementation is minimal and surgical, adding exactly the requested functionality without modifying existing behavior.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.