Skip to content

Commit

Permalink
main: fix filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 committed Apr 4, 2023
1 parent a8969a3 commit d5c775d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function main() {
core.setOutput("found_artifact", true)
core.info('==> (found) Artifacts')
for (const artifact of artifacts) {
const size = filesize(artifact.size_in_bytes, { base: 10 })
const size = filesize.filesize(artifact.size_in_bytes, { base: 10 })
core.info(`\t==> Artifact:`)
core.info(`\t==> ID: ${artifact.id}`)
core.info(`\t==> Name: ${artifact.name}`)
Expand Down Expand Up @@ -263,7 +263,7 @@ async function main() {

function setExitMessage(ifNoArtifactFound, message) {
core.setOutput("found_artifact", false)

switch (ifNoArtifactFound) {
case "fail":
core.setFailed(message)
Expand Down

0 comments on commit d5c775d

Please sign in to comment.