mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 01:36:19 +08:00
Debugging
This commit is contained in:
parent
42e2fed267
commit
a2ba1beedb
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
11
src/cache.ts
11
src/cache.ts
@ -1,11 +1,18 @@
|
||||
import * as core from '@actions/core'
|
||||
import * as path from 'path'
|
||||
|
||||
export async function restoreCachedWrapperDist(
|
||||
executableDirectory: string
|
||||
): Promise<void> {
|
||||
core.saveState('GC_WRAPPER_BASE_DIR', executableDirectory)
|
||||
core.saveState('WRAPPER_BASE_DIR', executableDirectory)
|
||||
core.info(`WRAPPER_BASE_DIR = ${core.getState('WRAPPER_BASE_DIR')}`)
|
||||
const wrapperProperties = path.join(
|
||||
executableDirectory,
|
||||
'gradle/wrapper/gradle-wrapper.properties'
|
||||
)
|
||||
core.info(`wrapper properties = ${wrapperProperties}`)
|
||||
}
|
||||
|
||||
export async function cacheWrapperDist(): Promise<void> {
|
||||
core.info(`GC_WRAPPER_BASE_DIR = ${core.getState('GC_WRAPPER_BASE_DIR')}`)
|
||||
core.info(`WRAPPER_BASE_DIR = ${core.getState('WRAPPER_BASE_DIR')}`)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user