fix deploy

This commit is contained in:
mbecker20
2025-10-01 21:35:27 -07:00
parent 7422c0730d
commit e2680d0942
2 changed files with 3 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
import { run } from "./run.ts";
await run("deploy-komodo", "procedure");
await run("deploy-komodo");

View File

@@ -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())