diff --git a/core/src/commands/update-remote/actions.ts b/core/src/commands/update-remote/actions.ts index 415ef25c4f..3e3f8051ac 100644 --- a/core/src/commands/update-remote/actions.ts +++ b/core/src/commands/update-remote/actions.ts @@ -113,19 +113,21 @@ export async function updateRemoteActions({ }) } - await pMap( - actionSources, - ({ name, repositoryUrl }) => { - return garden.vcs.updateRemoteSource({ - name, - url: repositoryUrl, - sourceType: "action", - log, - failOnPrompt: opts.parallel, - }) - }, - { concurrency: opts.parallel ? actionSources.length : 1 } - ) + if (actionSources.length > 0) { + await pMap( + actionSources, + ({ name, repositoryUrl }) => { + return garden.vcs.updateRemoteSource({ + name, + url: repositoryUrl, + sourceType: "action", + log, + failOnPrompt: opts.parallel, + }) + }, + { concurrency: opts.parallel ? actionSources.length : 1 } + ) + } await pruneRemoteSources({ gardenDirPath: garden.gardenDirPath,