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 Oct 8, 2022
1 parent 8bd0d01 commit c49ff0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 c49ff0c

Please sign in to comment.