diff --git a/action/deploy.ts b/action/deploy.ts index aa3ad9f85..28143a495 100755 --- a/action/deploy.ts +++ b/action/deploy.ts @@ -1,2 +1,2 @@ import { run } from "./run.ts"; -await run("deploy-komodo", "procedure"); +await run("deploy-komodo"); diff --git a/action/run.ts b/action/run.ts index ba84a67e4..fdb33521a 100644 --- a/action/run.ts +++ b/action/run.ts @@ -1,6 +1,6 @@ import * as TOML from "@std/toml"; -export const run = async (resource_name: string, resource_type = "action") => { +export const run = async (action: string) => { const branch = await new Deno.Command("bash", { args: ["-c", "git rev-parse --abbrev-ref HEAD"], }) @@ -39,7 +39,7 @@ echo "" git push echo "" -km run -y ${resource_type} ${resource_name} "KOMODO_BRANCH=${branch}&KOMODO_VERSION=${version}&KOMODO_TAG=${tag}-${next_count}" +km run -y action ${action} "KOMODO_BRANCH=${branch}&KOMODO_VERSION=${version}&KOMODO_TAG=${tag}-${next_count}" ` .split("\n") .map((line) => line.trim())