Support multiple versions in single invocation #240
Support multiple versions in single invocation #240MaksimZhukov merged 22 commits intoactions:mainfrom
Conversation
removed ver 5.0 from multiple versions test
* Updated README & action.yml to reflect changes * modified verify ps1 test
|
I believe it would be better if this used YAML arrays instead of a comma separated string. Given that YAML has builtin support for arrays, it is a bit counterintuitive to use a comma-separated string instead of YAML arrays imo. |
Hello@GGG-KILLER, while I agree it would be more ideal to use an array, I don't believe the actions toolkit supports getting input as an array of strings with the YAML syntax. |
True, after checking the other Found another action that accepts multiple inputs and comma separated seems to be standard practice. |
* Added seperate input for multiple versions and subsequent logic to handle multiple versions from new input * updated test for multiple versions logic in installer.test *Updated README
|
Just my 2 cents, but wouldn't it be better to just have a single I feel like having two differently named options for the same thing (one accepting a single input and the other accepting multiple) is a bit counter intuitive. Also, on another note, the multiple version test and README are still using |
Thanks for catching that 👍🏾 |
|
Hi @Xlient, maybe it will be better to create |
|
Hello @vsafonkin, I've updated |
|
@Xlient, great, thank you! |
|
I think we should change a bit the action.yml and README: --> and --> |
Maybe the caching part should be removed as well? Seems like it hasn't been working since v1.7.0 (see #141) |
- updated README & action.yml - moved addToPath -> getDotet in installer.test
- add logic to remove duplicate sdk in verification test Please enter the commit message for your changes. Lines starting
fixed verification test
|
How does this work in conjunction with global.json? I currently use global.json to install a current version and separately install older versions by hardcoding a version. |
|
Hi @RehanSaeed, if you have - name: Setup dotnet
uses: actions/setup-dotnet@v1.9.0
- name: Setup dotnet
uses: actions/setup-dotnet@v1.9.0
with:
dotnet-version: |
5.0.x
6.0.xIt installs version from global.json and other required versions from the second invocation of action. |
Description:
Adds support to install multiple versions of .NET with a single invocation. Specified using a multiline string
Example :
Related issue:
fixes #146
Check list: