From 7833348d60ab2228e66dda72322120fb89db09ee Mon Sep 17 00:00:00 2001 From: Gregory Szorc Date: Mon, 11 Nov 2024 19:10:45 -0800 Subject: [PATCH] Rename `tool_cache` -> `toolCache` Per newer versions of JS Standard linter. --- src/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index 5be047e..b2385d7 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ const core = require('@actions/core') const exec = require('@actions/exec') -const tool_cache = require('@actions/tool-cache') +const toolCache = require('@actions/tool-cache') const os = require('os') async function getRcodesign(version) { @@ -48,14 +48,14 @@ async function getRcodesign(version) { core.info(`Downloading rcodesign from ${url}`) - const toolPath = await tool_cache.downloadTool(url) + const toolPath = await toolCache.downloadTool(url) let destDir if (url.endsWith('.tar.gz')) { - destDir = await tool_cache.extractTar(toolPath, 'rcodesign') + destDir = await toolCache.extractTar(toolPath, 'rcodesign') } else { - destDir = await tool_cache.extractZip(toolPath, 'rcodesign') + destDir = await toolCache.extractZip(toolPath, 'rcodesign') } let exe = `${destDir}/${directory}/rcodesign`