Skip to content

Commit

Permalink
fix: return path from downloadToolFromManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
sethyates committed Aug 30, 2022
1 parent a8eb798 commit 783695f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function downloadToolFromManifest(
version: string,
github_token: string,
archive_subdir?: string
): Promise<unknown> {
): Promise<string> {
const manifest = await tc.getManifestFromRepo(
'conventional-actions',
repo,
Expand Down Expand Up @@ -86,7 +86,7 @@ export async function downloadToolFromManifest(
core.debug(`tool path ${toolPath}`)

core.addPath(toolPath)
return
return toolPath
} else {
throw new Error(`could not find ${tool} ${version} for ${os.arch()}`)
}
Expand Down

0 comments on commit 783695f

Please sign in to comment.