Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed May 20, 2024
1 parent 9fe0fe3 commit 3cfcfe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ function runEsyCommand(name: string, args: string[]) {
return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args);
}

const platform = os.platform();
const arch = os.arch();
async function main() {
try {
const workingDirectory =
core.getInput("working-directory") || process.cwd();
fs.statSync(workingDirectory);
process.chdir(workingDirectory);

const platform = os.platform();
const arch = os.arch();
const installPath = ["~/.esy/source"];
const installKey = `source-${platform}-${arch}-${sourceCacheKey}`;
core.startGroup("Restoring install cache");
Expand Down Expand Up @@ -127,7 +127,7 @@ async function prepareNPMArtifacts() {
const artifactName = `npm-${context.job.replace(
" ",
"_",
)}-${new Date().getTime()}`;
)}-${platform}-${arch}-${new Date().getTime()}`;
console.log("Artifact name: ", artifactName);
const { id, size } = await artifact.uploadArtifact(
artifactName,
Expand Down

0 comments on commit 3cfcfe4

Please sign in to comment.