Skip to content

Commit

Permalink
Revert "main: fix filesize"
Browse files Browse the repository at this point in the history
This reverts commit d5c775d.
  • Loading branch information
dawidd6 committed Apr 4, 2023
1 parent d5c775d commit 350c4e6
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.filesize(artifact.size_in_bytes, { base: 10 })
const size = 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 350c4e6

Please sign in to comment.