Skip to content
Snippets Groups Projects
Commit d6be277a authored by Mohamed AZIKIOU's avatar Mohamed AZIKIOU
Browse files

fix(recorder): reduced number of commits

parent 3f7598d9
No related branches found
No related tags found
No related merge requests found
Pipeline #14996 failed
......@@ -23,10 +23,15 @@ export enum CommitFrom {
}
export async function commitAndPushOnQueue(gitMission: GitMission, from: CommitFrom) {
if (from === CommitFrom.Run) {
gitQueue.push(async () => {
if (from === CommitFrom.Auto) await commitAndPushCode(gitMission);
if (from === CommitFrom.Run) await mergeMaster(gitMission);
await mergeMaster(gitMission);
});
} else if (gitQueue.length() == 0) {
gitQueue.push(async () => {
await commitAndPushCode(gitMission);
});
}
}
async function commitAndPushCode(gitMission: GitMission) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment