diff --git a/.github/actions/nym-hash-releases/dist/index.js b/.github/actions/nym-hash-releases/dist/index.js index eee76c7505..69215b67df 100644 --- a/.github/actions/nym-hash-releases/dist/index.js +++ b/.github/actions/nym-hash-releases/dist/index.js @@ -23986,7 +23986,8 @@ async function run(assets, algorithm, filename, cache) { console.warn("cache is set to 'false', but we we no longer support it") } - const directory = external_path_.resolve(process.env.RUNNER_TEMP || '.tmp', process.env.GITHUB_RUN_ID || ''); + const directory = external_path_.join(process.env.RUNNER_TEMP || '.tmp', process.env.GITHUB_RUN_ID || ''); + console.log('Temporary directory: ', directory); try { external_fs_.mkdirSync(directory, { recursive: true }); @@ -24004,7 +24005,7 @@ async function run(assets, algorithm, filename, cache) { let sig = null; // cache in `${WORKING_DIR}/.tmp/` - const cacheFilename = __nccwpck_require__.ab + "src/" + directory + '/' + asset.name; + const cacheFilename = external_path_.join(directory, `${asset.name}`); if(!external_fs_.existsSync(cacheFilename)) { console.log(`Downloading ${asset.browser_download_url}... to ${cacheFilename}`); buffer = Buffer.from(await fetch(asset.browser_download_url).then(res => res.arrayBuffer())); diff --git a/.github/actions/nym-hash-releases/src/create-hashes.mjs b/.github/actions/nym-hash-releases/src/create-hashes.mjs index 115267d9f2..b52e93ec60 100644 --- a/.github/actions/nym-hash-releases/src/create-hashes.mjs +++ b/.github/actions/nym-hash-releases/src/create-hashes.mjs @@ -24,7 +24,8 @@ async function run(assets, algorithm, filename, cache) { console.warn("cache is set to 'false', but we we no longer support it") } - const directory = path.resolve(process.env.RUNNER_TEMP || '.tmp', process.env.GITHUB_RUN_ID || ''); + const directory = path.join(process.env.RUNNER_TEMP || '.tmp', process.env.GITHUB_RUN_ID || ''); + console.log('Temporary directory: ', directory); try { fs.mkdirSync(directory, { recursive: true }); @@ -42,7 +43,7 @@ async function run(assets, algorithm, filename, cache) { let sig = null; // cache in `${WORKING_DIR}/.tmp/` - const cacheFilename = path.resolve(directory, `${asset.name}`); + const cacheFilename = path.join(directory, `${asset.name}`); if(!fs.existsSync(cacheFilename)) { console.log(`Downloading ${asset.browser_download_url}... to ${cacheFilename}`); buffer = Buffer.from(await fetch(asset.browser_download_url).then(res => res.arrayBuffer()));