Check the right variables (#35)

This commit is contained in:
Danny McCormick authored and GitHub committed 2019-07-30 12:31:36 -04:00
1 parent b39d3398da
commit 2acb4d39d0
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -21,8 +21,8 @@ const IS_WINDOWS = process.platform === 'win32'
const userAgent = 'actions/tool-cache'
// On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
let tempDirectory: string = process.env['RUNNER_TEMPDIRECTORY'] || ''
let cacheRoot: string = process.env['RUNNER_TOOLSDIRECTORY'] || ''
let tempDirectory: string = process.env['RUNNER_TEMP'] || ''
let cacheRoot: string = process.env['RUNNER_TOOL_CACHE'] || ''
// If directories not found, place them in common temp locations
if (!tempDirectory || !cacheRoot) {
let baseLocation: string