Skip to content

Conversation

@nogic1008
Copy link
Contributor

@nogic1008 nogic1008 commented Nov 24, 2021

Description:
getBooleanInput() function was added since @actions/core@1.3.0 (actions/toolkit#725).
This PR uses it to reduce code path.

⚠️This change is BREAKING CHANGE if include-prerelease set invalid value.

- uses: actions/setup-dotnet@v1
  with:
    dotnet-version: '6.0.x'
    include-prerelease: 'foo' # Resolved 'false' before, but throws error now

Related issue:
None.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@vsafonkin
Copy link

Hi @nogic1008, could you please revert the lines in index.js with module.exports?

@vsafonkin
Copy link

@nogic1008 , could you update your branch from main to fix license issue?

@nogic1008
Copy link
Contributor Author

@vsafonkin rebased.

@jafar141

This comment was marked as spam.

@jafar141

This comment was marked as spam.

@nogic1008 nogic1008 requested a review from a team July 21, 2022 23:48
@nogic1008
Copy link
Contributor Author

I'm sorry to have staled this PR.
I rebased to current main branch.

@nogic1008 nogic1008 requested a review from vsafonkin July 26, 2022 07:30
include-prerelease:
description: 'Whether prerelease versions should be matched with non-exact versions (for example 5.0.0-preview.6 being matched by 5, 5.0, 5.x or 5.0.x). Defaults to false if not provided.'
required: False
default: 'false'
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please remove single quotes ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dmitry-shibanov
GitHub Action schema warns this should be string. Should I still remove the quotes?
Incorrect type. Expected "string".

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it should be okay, because we use the similar approach for setup-node https://github.com/actions/setup-node/blob/main/action.yml#L16. But I think you can keep this variant due to the parsing logic of runner.

@marko-zivic-93 marko-zivic-93 merged commit 37b00c4 into actions:main Aug 2, 2022
@nogic1008 nogic1008 deleted the refactor/boolean-input branch August 2, 2022 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants