File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as os from 'os'
22import * as core from '@actions/core'
33import * as cache from '@actions/tool-cache'
44import * as semver from 'semver'
5+ import path from 'path'
56
67const toolName = 'mach-composer'
78
@@ -43,8 +44,10 @@ function getArch(): string {
4344async function downloadCLI ( version : string ) : Promise < string > {
4445 const url = getReleaseURL ( version )
4546 const artifactPath = await cache . downloadTool ( url )
46- const path = await cache . extractTar ( artifactPath )
47- return await cache . cacheFile ( path , toolName , toolName , version )
47+ const dirPath = await cache . extractTar ( artifactPath )
48+ const binPath = path . join ( dirPath , 'bin/mach-composer' )
49+
50+ return await cache . cacheFile ( binPath , toolName , toolName , version )
4851}
4952
5053export function getReleaseURL ( version : string ) : string {
You can’t perform that action at this time.
0 commit comments