Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example of boolean input usage #15349

Closed
wants to merge 3 commits into from

Conversation

tevans-submittable
Copy link
Contributor

Why:

Many people are confused by the usage of boolean. actions/runner#1483

invalid
if: ${{ inputs.perform_deploy }}
if: inputs.perform_deploy

Must be treated as string
if: ${{ inputs.perform_deploy == 'true' }}

What's being changed:

Update examples of the usage of workflow inputs of type boolean

Check off the following:

  • I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
  • For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

  • This pull request impacts the contribution experience
    • I have added the 'writer impact' label
    • I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Many people are confused by the usage of boolean.  actions/runner#1483

invalid
if: ${{ inputs.perform_deploy }}
if: inputs.perform_deploy

Must be treated as string
@welcome
Copy link

welcome bot commented Feb 11, 2022

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@tevans-submittable tevans-submittable marked this pull request as draft February 11, 2022 15:43
@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Feb 11, 2022
@tevans-submittable tevans-submittable marked this pull request as ready for review February 11, 2022 16:11
@ramyaparimi ramyaparimi added actions This issue or pull request should be reviewed by the docs actions team waiting for review Issue/PR is waiting for a writer's review and removed triage Do not begin working on this issue until triaged by the team labels Feb 14, 2022
@ramyaparimi
Copy link
Contributor

@tevans-submittable Thanks so much for opening a PR! I'll get this triaged for review ⚡

@ethomson
Copy link
Contributor

ethomson commented Mar 1, 2022

This seems like a reasonable change. Thanks @tevans-submittable 👍

Copy link
Member

@lecoursen lecoursen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tevans-submittable, this looks great! It looks like there's a merge conflict that you'll need to resolve before we can merge and publish this. Please ping us in for another review after you've done that!

@tevans-submittable
Copy link
Contributor Author

Had issues due to filename lengths, new branch and PR - #16028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions This issue or pull request should be reviewed by the docs actions team waiting for review Issue/PR is waiting for a writer's review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants