diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index dbcef343..d4850411 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -1535,8 +1535,7 @@ const os_1 = __importDefault(__webpack_require__(87)); const path_1 = __importDefault(__webpack_require__(622)); const tc = __importStar(__webpack_require__(533)); function getTempDir() { - let tempDirectory = process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); - return tempDirectory; + return process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); } exports.getTempDir = getTempDir; function getVersionFromToolcachePath(toolPath) { diff --git a/dist/setup/index.js b/dist/setup/index.js index 13013cf3..0f5ec2c5 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -12930,8 +12930,7 @@ const os_1 = __importDefault(__webpack_require__(87)); const path_1 = __importDefault(__webpack_require__(622)); const tc = __importStar(__webpack_require__(139)); function getTempDir() { - let tempDirectory = process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); - return tempDirectory; + return process.env['RUNNER_TEMP'] || os_1.default.tmpdir(); } exports.getTempDir = getTempDir; function getVersionFromToolcachePath(toolPath) { @@ -13294,7 +13293,7 @@ function write(directory, settings) { return __awaiter(this, void 0, void 0, function* () { const location = path.join(directory, exports.SETTINGS_FILE); if (fs.existsSync(location)) { - core.warning(`Overwriting existing file ${location}`); + core.info(`Overwriting existing file ${location}`); } else { core.info(`Writing ${location}`); diff --git a/src/auth.ts b/src/auth.ts index c7e77f06..c7ebe0d6 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -101,7 +101,7 @@ export function generate( async function write(directory: string, settings: string) { const location = path.join(directory, SETTINGS_FILE); if (fs.existsSync(location)) { - core.warning(`Overwriting existing file ${location}`); + core.info(`Overwriting existing file ${location}`); } else { core.info(`Writing ${location}`); } diff --git a/src/util.ts b/src/util.ts index d3606b2a..d1622939 100644 --- a/src/util.ts +++ b/src/util.ts @@ -4,9 +4,7 @@ import path from 'path'; import * as tc from '@actions/tool-cache'; export function getTempDir() { - let tempDirectory = process.env['RUNNER_TEMP'] || os.tmpdir(); - - return tempDirectory; + return process.env['RUNNER_TEMP'] || os.tmpdir(); } export function getVersionFromToolcachePath(toolPath: string) {