From f6122abbf1aa8a6866ee9ac9806ae675a0321fab Mon Sep 17 00:00:00 2001 From: bi003731 Date: Tue, 2 Dec 2025 08:55:46 -0300 Subject: [PATCH] sequential calls to glab Signed-off-by: bi003731 --- .../src/actions/gitlabRepoPush.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts index b1a88de869..bdd6321911 100644 --- a/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts +++ b/plugins/scaffolder-backend-module-gitlab/src/actions/gitlabRepoPush.ts @@ -148,8 +148,9 @@ export const createGitlabRepoPushAction = (options: { const actions: CommitAction[] = ( ( - await Promise.all( - fileContents.map(async file => { + await (async () => { + const results = []; + for (const file of fileContents) { const action = await getFileAction( { file, targetPath }, { repoID, branch: branchName }, @@ -158,9 +159,10 @@ export const createGitlabRepoPushAction = (options: { remoteFiles, ctx.input.commitAction, ); - return { file, action }; - }), - ) + results.push({ file, action }); + } + return results; + })() ).filter(o => o.action !== 'skip') as { file: SerializedFile; action: CommitAction['action'];