From e5199d59a921ec2134c052e21c83585ddbdebf17 Mon Sep 17 00:00:00 2001 From: yusancky Date: Tue, 6 Feb 2024 01:02:33 +0800 Subject: [PATCH] Use exit(0) --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index b6fc77f..295fcb1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,9 +6,10 @@ import * as github from "@actions/github"; import * as glob from "@actions/glob"; import * as tc from "@actions/tool-cache"; import fs from "fs"; +import { createUnauthenticatedAuth } from "@octokit/auth-unauthenticated"; import * as os from "os"; import { join } from "node:path"; -import { createUnauthenticatedAuth } from "@octokit/auth-unauthenticated"; +import { exit } from "process"; import * as semver from "semver"; const octokit = core.getInput("typst-token") @@ -107,6 +108,7 @@ if (cachePackage) { if (cacheId != -1) { core.info(`✅ Cache saved with the key: typst-package-${hash}`); } + exit(0); } } else { core.warning(