Skip to content

Commit

Permalink
Use exit(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusancky authored Feb 5, 2024
1 parent 8106a21 commit e5199d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -107,6 +108,7 @@ if (cachePackage) {
if (cacheId != -1) {
core.info(`✅ Cache saved with the key: typst-package-${hash}`);
}
exit(0);
}
} else {
core.warning(
Expand Down

0 comments on commit e5199d5

Please sign in to comment.