Skip to content

Commit

Permalink
fix: do not error if actionSources are empty (#5036)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimBeyer authored Sep 7, 2023
1 parent 67963e9 commit bc38c97
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions core/src/commands/update-remote/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc38c97

Please sign in to comment.