Cyberboss / install-winget

Action to install latest winget CLI on Windows runners
GNU Affero General Public License v3.0
14 stars 2 forks source link

Parametrize which winget version to get #7

Closed blessio closed 2 weeks ago

blessio commented 2 weeks ago

Thank you for fixing the main tree to use a stable version of winget.

Still, hardcoding the used version in the base action is also limiting the improvements from winget team. I believe that having a parameter is one of the best ways, because it can achieve both goals of being flexible and stable. At the same time, it keeps the power of the action user (client) to fix the used winget release version (which is anyway recommended).

This PR does exactly that and was tested in the source branch - it is backward compatible to the current version.

The changes in file: .github/workflows/test_action.yml should be ignored (they were needed to test after all).

Please merge this backward compatible change :)