-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: install supported Terramate system/arch (excluding windows). #15
base: main
Are you sure you want to change the base?
Conversation
5a0d9c6
to
8caae18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
529b232
to
46929fd
Compare
Signed-off-by: i4k <[email protected]>
@@ -18,7 +18,7 @@ get_latest_version() { | |||
echo >&2 "latest version: Getting latest Terramate release information from GitHub Releases" | |||
|
|||
latest_url="https://api.github.com/repos/terramate-io/terramate/releases/latest" | |||
latest_json=$(curl -s "${latest_url}") | |||
latest_json=$(curl -s -H "Authorization: Bearer ${GITHUB_TOKEN}" "${latest_url}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/home/runner/_work/_actions/terramate-io/terramate-action/i4k-fix-macos/install.sh: line 21: GITHUB_TOKEN: unbound variable
I got this error when running this line @i4ki
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, this needs a fallback to be unauthenticated if the env is not set.
But the install requires fetching the latest Terramate release from Github API, so if unauthenticated you can get some rate limiting errors in your pipeline. Quick fix now is just pass the GITHUB_TOKEN to the action.
Enables the installation of the supported Terramate Operating System and architectures.
Windows support is still experimental, hence not implemented.