Remove setup job until act issues are resolved

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-12-05 23:51:48 -05:00
parent eb73f95d68
commit 726049c2c1

View File

@@ -467,14 +467,15 @@ export class Act {
start: dateString start: dateString
}, },
steps: [ steps: [
{ // TODO: Add setup job step. To be fixed with https://github.com/nektos/act/issues/2551
id: "--setup-job", // Special id for setup job // {
name: 'Setup Job', // id: "--setup-job", // Special id for setup job
status: HistoryStatus.Running, // name: 'Setup Job',
date: { // status: HistoryStatus.Running,
start: dateString // date: {
} // start: dateString
} // }
// }
] ]
}); });
jobIndex = this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs!.length - 1; jobIndex = this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs!.length - 1;
@@ -512,11 +513,12 @@ export class Act {
} }
} }
if (this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].status === HistoryStatus.Running) { // TODO: Add setup job status check. To be fixed with https://github.com/nektos/act/issues/2551
// TODO: This forcefully sets the setup job step to success. To be fixed with https://github.com/nektos/act/issues/2551 // if (this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].status === HistoryStatus.Running) {
this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].status = HistoryStatus.Success; // // TODO: This forcefully sets the setup job step to success. To be fixed with https://github.com/nektos/act/issues/2551
this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].date.end = dateString; // this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].status = HistoryStatus.Success;
} // this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps![0].date.end = dateString;
// }
let stepIndex = this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps! let stepIndex = this.historyManager.workspaceHistory[commandArgs.path][historyIndex].jobs![jobIndex].steps!
.findIndex(step => step.id === stepId && step.name === stepName); .findIndex(step => step.id === stepId && step.name === stepName);