Cache wrapper dist, step 1

This commit is contained in:
Paul Merlin 2020-06-13 14:48:54 +02:00
parent 8e2fd532f1
commit 42e2fed267
5 changed files with 18 additions and 2 deletions

View file

@ -2,6 +2,7 @@ import * as core from '@actions/core'
import * as path from 'path'
import {parseArgsStringToArgv} from 'string-argv'
import * as cache from './cache'
import * as execution from './execution'
import * as gradlew from './gradlew'
import * as provision from './provision'
@ -48,6 +49,8 @@ async function resolveGradleExecutable(baseDirectory: string): Promise<string> {
? path.join(baseDirectory, wrapperDirectory)
: baseDirectory
await cache.restoreCachedWrapperDist(executableDirectory)
return path.resolve(executableDirectory, gradlew.wrapperFilename())
}