mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-25 09:40:57 -05:00
Debugging
This commit is contained in:
parent
42e2fed267
commit
a2ba1beedb
3 changed files with 11 additions and 4 deletions
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 core from '@actions/core'
|
||||||
|
import * as path from 'path'
|
||||||
|
|
||||||
export async function restoreCachedWrapperDist(
|
export async function restoreCachedWrapperDist(
|
||||||
executableDirectory: string
|
executableDirectory: string
|
||||||
): Promise<void> {
|
): 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> {
|
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…
Reference in a new issue