diff --git a/dist/promote-charm/index.js b/dist/promote-charm/index.js index 6aeb6b7a..b8a1f222 100644 --- a/dist/promote-charm/index.js +++ b/dist/promote-charm/index.js @@ -42519,7 +42519,10 @@ class PromoteCharmAction { } getRevisions(name, track, channel, bases) { return __awaiter(this, void 0, void 0, function* () { - return Promise.all(bases.map((base) => __awaiter(this, void 0, void 0, function* () { + // Filter out bases with architecture "all" + const filteredBases = bases.filter((base) => base.architecture !== 'all'); + // Map filtered bases to their revision information + return Promise.all(filteredBases.map((base) => __awaiter(this, void 0, void 0, function* () { return this.charmcraft.getRevisionInfoFromChannelJson(name, track, channel, base); }))); }); diff --git a/src/actions/promote-charm/promote-charm.ts b/src/actions/promote-charm/promote-charm.ts index 4c6ce840..d0841bd6 100644 --- a/src/actions/promote-charm/promote-charm.ts +++ b/src/actions/promote-charm/promote-charm.ts @@ -32,8 +32,12 @@ export class PromoteCharmAction { channel: string, bases: Base[], ): Promise { + // Filter out bases with architecture "all" + const filteredBases = bases.filter((base) => base.architecture !== 'all'); + + // Map filtered bases to their revision information return Promise.all( - bases.map(async (base: Base) => + filteredBases.map(async (base: Base) => this.charmcraft.getRevisionInfoFromChannelJson( name, track,