aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/workflows/step.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/workflows/step.go')
-rw-r--r--internal/workflows/step.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/workflows/step.go b/internal/workflows/step.go
index 83d9c5f3..199f82d9 100644
--- a/internal/workflows/step.go
+++ b/internal/workflows/step.go
@@ -76,11 +76,12 @@ func newTestsuite(name, prefix string) Step {
// newPackages returns a job for installing the specified packages with
// best-effort caching. Package names must not contain spaces.
-func newPackages(rev int, packages ...string) Step {
+func newPackages(rev int, repos []string, packages ...string) Step {
return Step{
Name: "Install packages",
Uses: "awalsh128/cache-apt-pkgs-action@v1",
With: []KV[any]{
+ {"add-repository", strings.Join(repos, " ")},
{"packages", strings.Join(packages, " ")},
{"version", rev},
{"execute_install_scripts", true},