Skip to content

Commit

Permalink
Use core.getBooleanInput(), fixes #179 (#197)
Browse files Browse the repository at this point in the history
* Use core.getBooleanInput(), fixes #179

* Also update input definitions
  • Loading branch information
ping authored and dawidd6 committed Oct 15, 2022
1 parent de3af9d commit 525d1e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions action.yml
Expand Up @@ -54,12 +54,15 @@ inputs:
check_artifacts:
description: Check workflow run whether it has an artifact
required: false
default: false
search_artifacts:
description: Search workflow runs for artifact with specified name
required: false
default: false
skip_unpack:
description: Choose to skip unpacking the downloaded artifact(s)
required: false
default: false
dry_run:
description: Check the existence of artifact(s) without downloading
required: false
Expand Down
6 changes: 3 additions & 3 deletions main.js
Expand Up @@ -25,7 +25,7 @@ async function main() {
const [owner, repo] = core.getInput("repo", { required: true }).split("/")
const path = core.getInput("path", { required: true })
const name = core.getInput("name")
const skipUnpack = core.getInput("skip_unpack")
const skipUnpack = core.getBooleanInput("skip_unpack")
const ifNoArtifactFound = core.getInput("if_no_artifact_found")
let workflow = core.getInput("workflow")
let workflowConclusion = core.getInput("workflow_conclusion")
Expand All @@ -35,8 +35,8 @@ async function main() {
let event = core.getInput("event")
let runID = core.getInput("run_id")
let runNumber = core.getInput("run_number")
let checkArtifacts = core.getInput("check_artifacts")
let searchArtifacts = core.getInput("search_artifacts")
let checkArtifacts = core.getBooleanInput("check_artifacts")
let searchArtifacts = core.getBooleanInput("search_artifacts")
let dryRun = core.getInput("dry_run")

const client = github.getOctokit(token)
Expand Down

0 comments on commit 525d1e5

Please sign in to comment.