mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-07-03 05:45:59 +02:00
Cache wrapper dist, step 1
This commit is contained in:
parent
8e2fd532f1
commit
42e2fed267
5 changed files with 18 additions and 2 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue