summaryrefslogtreecommitdiff
path: root/worker/scripts/checkout_ci.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-07-01 10:49:40 -0700
committerElizabeth Hunt <me@liz.coffee>2025-07-01 10:49:40 -0700
commit7d2c0a4aedad3c5e8a81bd19f4417aa4f9fb8360 (patch)
treec4bba5f176774ce337d532e9b47e16ef5a98b337 /worker/scripts/checkout_ci.ts
parentf556523d908ed2ae836fe077f11c5a1b724d459a (diff)
downloadci-7d2c0a4aedad3c5e8a81bd19f4417aa4f9fb8360.tar.gz
ci-7d2c0a4aedad3c5e8a81bd19f4417aa4f9fb8360.zip
Use correct fetch code props
Diffstat (limited to 'worker/scripts/checkout_ci.ts')
-rwxr-xr-xworker/scripts/checkout_ci.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/scripts/checkout_ci.ts b/worker/scripts/checkout_ci.ts
index 0a8b30d..0c6d92c 100755
--- a/worker/scripts/checkout_ci.ts
+++ b/worker/scripts/checkout_ci.ts
@@ -51,7 +51,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob)
tEitherJob.get().flatMapAsync((ciJob) => {
const wd = getWorkingDirectoryForCiJob(ciJob);
const fetchPackageJob = <FetchCodeJob>{
- type: 'fetch_code.js',
+ type: 'fetch_code',
arguments: {
remoteUrl: ciJob.arguments.remote,
checkout: ciJob.arguments.rev,
@@ -62,7 +62,7 @@ await LogMetricTraceable.ofLogTraceable(_logJob)
mkdir(wd, { recursive: true })
.then(() => process.chdir(wd))
.then(() => tEitherJob.move(fetchPackageJob).map(executeJob).get())
- .then(() => ciJob),
+ .then((e) => e.fold(err => { throw err; }, () => ciJob)),
);
}),
)