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 eb58356 commit 93471f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ const inputManifestURL = actionsCore.getInput('manifest-url');
const latestManifest = (await fetchManifestData(inputManifestURL)).latest
fs.mkdir('./data', {recursive: true})

await fs.appendFile(
await fs.writeFile(
'./data/latest_manifest.json',
JSON.stringify(latestManifest)
)

artifactClient.uploadArtifact(
'latest_manifest.json',
'latest_manifest',
['latest_manifest.json'],
'./data/'
'./data'
)

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

0 comments on commit 93471f0

Please sign in to comment.