Skip to content

Commit

Permalink
fix: repair failed import
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax committed Nov 24, 2024
1 parent 01dde5f commit a93d750
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/download-binary.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import tc from "@actions/tool-cache";
import { downloadTool, extractTar } from "@actions/tool-cache";

export async function downloadFile(version: string): Promise<string> {
const binaryUrl = `https://github.com/iggy-rs/iggy/releases/download/server-${version}/Linux-x86_64.zip`;
const pathToTarball = await tc.downloadTool(binaryUrl);
const pathToCLI = await tc.extractTar(pathToTarball);
const pathToTarball = await downloadTool(binaryUrl);
const pathToCLI = await extractTar(pathToTarball);
return pathToCLI;
}

0 comments on commit a93d750

Please sign in to comment.