diff options
Diffstat (limited to 'worker')
-rw-r--r-- | worker/jobs/ci_pipeline.run | 4 | ||||
-rwxr-xr-x | worker/scripts/ansible_playbook | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/worker/jobs/ci_pipeline.run b/worker/jobs/ci_pipeline.run index 46237f6..66b02ed 100644 --- a/worker/jobs/ci_pipeline.run +++ b/worker/jobs/ci_pipeline.run @@ -48,7 +48,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob) }, }; return Either.fromFailableAsync<Error, CheckoutCiJob>( - Deno.mkdir(wd).then(() => Deno.chdir(wd)) + () => Deno.mkdir(wd).then(() => Deno.chdir(wd)) .then(() => tEitherJob.move(fetchPackageJob).map(executeJob).get()) .then(() => ciJob), ); @@ -58,7 +58,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob) tEitherCiJob.get().then((eitherCiJob) => eitherCiJob.flatMapAsync<{ cmd: Command; job: CheckoutCiJob }>((ciJob) => Either.fromFailableAsync<Error, string>( - Deno.readTextFile( + () => Deno.readTextFile( `${getSrcDirectoryForCiJob(ciJob)}/${CI_WORKFLOW_FILE}`, ), ).then((eitherWorkflowJson) => diff --git a/worker/scripts/ansible_playbook b/worker/scripts/ansible_playbook index 026f892..fe2810b 100755 --- a/worker/scripts/ansible_playbook +++ b/worker/scripts/ansible_playbook @@ -104,7 +104,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob).bimap(TraceUtil.withMetricTrace const saveToTempFile = (text: string): Promise<IEither<Error, string>> => Either.fromFailableAsync( - Deno.makeTempDir({ dir: Deno.cwd() }) + () => Deno.makeTempDir({ dir: Deno.cwd() }) .then((dir) => Deno.makeTempFile({ dir })) .then(async (f) => { await Deno.writeTextFile(f, text); |