Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Feb 6, 2024
1 parent 607ddf9 commit c526a79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ const inputManifestURL = actionsCore.getInput('manifest-url');
console.log(__dirname, latestManifest);


fs.mkdir(`${cationsGithub.context.repo.repo}/data`, {recursive: true})
fs.mkdir(`${__dirname}/data`, {recursive: true})
await fs.writeFile(
`${cationsGithub.context.repo.repo}/data/latest_manifest.json`,
`${__dirname}/data/latest_manifest.json`,
JSON.stringify(latestManifest)
)


artifactClient.uploadArtifact(
'latest-manifest',
[`${cationsGithub.context.repo.repo}/data/latest_manifest.json`],
`${cationsGithub.context.repo.repo}/data`
[`${__dirname}/data/latest_manifest.json`],
`${__dirname}/data`
)

// const artifacts = await artifactClient.listArtifacts({latest: true})
Expand Down

0 comments on commit c526a79

Please sign in to comment.