mirror of
https://github.com/gradle/actions.git
synced 2025-12-08 17:15:46 +08:00
Cache wrapper dist, step 1
This commit is contained in:
11
src/cache.ts
Normal file
11
src/cache.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as core from '@actions/core'
|
||||
|
||||
export async function restoreCachedWrapperDist(
|
||||
executableDirectory: string
|
||||
): Promise<void> {
|
||||
core.saveState('GC_WRAPPER_BASE_DIR', executableDirectory)
|
||||
}
|
||||
|
||||
export async function cacheWrapperDist(): Promise<void> {
|
||||
core.info(`GC_WRAPPER_BASE_DIR = ${core.getState('GC_WRAPPER_BASE_DIR')}`)
|
||||
}
|
||||
Reference in New Issue
Block a user