-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installs the latest version of the Cake.Tool (#55)
Earlier, not providing an argument for the `cake-version` input parameter resulted in the Cake.Tool being installed without the `--version` parameter. This is fine in most cases, since in practice it translates into installing the latest version. The case when it stops being fine is when an earlier version of the Cake.Tool is already installed in the tools directory and you're running the action without a version number. In that case, you would expect the action to uninstall the existing version of the Cake.Tool and install the latest one, but what used to happen instead is that the action wouldn't even check what version was installed, since it had no version number to compare with, and it would just use whatever version of the tool was already installed. This commit addresses this corner case by explicitly fetching the latest version of the Cake.Tool from GitHub when no version number is specified by the user. This way, the action is able to compare that version number with whatever may already be installed and act appropriately.
- Loading branch information
1 parent
d280ee8
commit cc3bd29
Showing
3 changed files
with
116 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters