diff --git a/src/download/download-latest.ts b/src/download/download-latest.ts deleted file mode 100644 index a37ce61..0000000 --- a/src/download/download-latest.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { OWNER, REPO } from "../utils/constants"; -import * as github from "@actions/github"; - -export async function getLatestVersion(githubToken: string) { - const octokit = github.getOctokit(githubToken); - - const { data: latestRelease } = await octokit.rest.repos.getLatestRelease({ - owner: OWNER, - repo: REPO, - }); - - if (!latestRelease) { - throw new Error("Could not determine latest release."); - } - return latestRelease.tag_name; -}