diff options
Diffstat (limited to 'worker/scripts/checkout_ci.ts')
-rwxr-xr-x | worker/scripts/checkout_ci.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/worker/scripts/checkout_ci.ts b/worker/scripts/checkout_ci.ts index dade7c4..0a8b30d 100755 --- a/worker/scripts/checkout_ci.ts +++ b/worker/scripts/checkout_ci.ts @@ -18,6 +18,15 @@ import { join } from 'path'; import { type CheckoutCiJob, type FetchCodeJob, PipelineImpl } from '@emprespresso/ci_model'; import { executeJob, executePipeline } from '@emprespresso/ci_worker'; +export interface CiWorkflow { + workflow: string; +} +export function isCiWorkflow(t: unknown): t is CiWorkflow { + return isObject(t) && 'workflow' in t && typeof t.workflow === 'string' && !t.workflow.includes('..'); +} + +const CI_WORKFLOW_FILE = '.ci/ci.json'; + const run = Date.now().toString(); const eitherJob = getRequiredEnvVars(['remote', 'refname', 'rev']).mapRight( (baseArgs) => @@ -149,12 +158,3 @@ function getPipelineGenerationCommand( '/pipeline_generator', ]; } - -export interface CiWorkflow { - workflow: string; -} -export function isCiWorkflow(t: unknown): t is CiWorkflow { - return isObject(t) && 'workflow' in t && typeof t.workflow === 'string' && !t.workflow.includes('..'); -} - -const CI_WORKFLOW_FILE = '.ci/ci.json'; |