mirror of
https://github.com/BloopAI/apple-code-sign-action.git
synced 2026-08-23 12:28:32 +00:00
Rename tool_cache -> toolCache
Per newer versions of JS Standard linter.
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user