Skip to content

Commit

Permalink
fix(GithubActionUpdateTask): auto exit
Browse files Browse the repository at this point in the history
auto exit
  • Loading branch information
snomiao committed Jan 22, 2025
1 parent cd042b4 commit b084b59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GithubActionUpdateTask/updateGithubActionTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { CRNodes } from "../CRNodes";
import { yaml } from "../utils/yaml";
import { GithubActionUpdateTask } from "./GithubActionUpdateTask";
import { updateGithubActionPrepareBranch } from "./updateGithubActionPrepareBranch";
import {isCI} from 'is-ci'
console.log({ GithubActionUpdateTask: await GithubActionUpdateTask.find().toArray() });

const path = "./templates/publish.yaml";
Expand All @@ -17,6 +18,7 @@ export const testUpdatedPublishYaml = await readFile(import.meta.dir + "/test-up
export const referenceActionContentHash = sha256(referenceActionContent);

if (import.meta.main) {

// const repo = "https://github.com/54rt1n/ComfyUI-DareMerge";
const repo = "https://github.com/snomiao/ComfyUI-DareMerge-test";

Expand All @@ -31,6 +33,8 @@ if (import.meta.main) {

// task list importer
await updateGithubActionTaskList(repo);

if(isCI) process.exit(0)
}

async function updateGithubActionTaskList(repo: string) {
Expand Down

0 comments on commit b084b59

Please sign in to comment.