feature: install gh cli if not present#39
Merged
leonsteinhaeuser merged 2 commits intomainfrom Jul 14, 2022
Merged
Conversation
Owner
Author
|
@calexandre please check if you are ok with this solution. |
|
@leonsteinhaeuser not the issue author but I'm running into the same issue. I would appreciate this being released :) |
e70d5e8 to
55c5fc2
Compare
kodiakhq Bot
referenced
this pull request
in cloudquery/plugin-sdk
Sep 1, 2022
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | booxmedialtd/ws-action-parse-semver | action | digest | `966a265` -> `e4a833c` | | [leonsteinhaeuser/project-beta-automations](https://togithub.com/leonsteinhaeuser/project-beta-automations) | action | minor | `v1.2.1` -> `v1.3.0` | | tubone24/update_release | action | digest | `3361270` -> `53849a6` | --- ### Release Notes <details> <summary>leonsteinhaeuser/project-beta-automations</summary> ### [`v1.3.0`](https://togithub.com/leonsteinhaeuser/project-beta-automations/releases/tag/v1.3.0) [Compare Source](https://togithub.com/leonsteinhaeuser/project-beta-automations/compare/v1.2.1...v1.3.0) #### What's Changed - feature: install gh cli if not present by [@​leonsteinhaeuser](https://togithub.com/leonsteinhaeuser) in [https://github.com/leonsteinhaeuser/project-beta-automations/pull/39](https://togithub.com/leonsteinhaeuser/project-beta-automations/pull/39) - feature: implemented `@current` and `@next` iteration selection by [@​leonsteinhaeuser](https://togithub.com/leonsteinhaeuser) in [https://github.com/leonsteinhaeuser/project-beta-automations/pull/45](https://togithub.com/leonsteinhaeuser/project-beta-automations/pull/45) **Full Changelog**: leonsteinhaeuser/project-beta-automations@v1.2.1...v1.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xODAuMCIsInVwZGF0ZWRJblZlciI6IjMyLjE4MC4wIn0=-->
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a check if the gh cli is available and installs it from source otherwise.
If you know that your system does not provide this binary, you can also customize the version to be installed. To do this, simply specify an environment variable named
GH_CLI_VERSIONand the version string. When you declare such a variable, make sure that you follow the vendor's semver principle and do not prefix the version with a "v".Example:
Why did I choose to install from sources?
Since I don't want to mess with keys and package managers, I decided to simplify this process and download the binary directly from the sources. Otherwise I would have to check which package manager is available, what the package name is and so on.
Closes: #38