use Octokit client to download buildx#191
Conversation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
3592bcd to
4c3fce4
Compare
|
Using |
|
@rmg So needs to enforce server url in octokit? |
|
@rmg You mean https://github.com/actions/toolkit/tree/main/packages/github#usage?:
That doesn't look to be related |
|
Having it as an input is good, but making the default a little smarter would be good, eg: from token:
description: Used to pull node distributions from go-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
default: ${{ github.server_url == 'https://github.com' && github.token || '' }} |
|
|
|
@rmg Is there a place where we can hardcode it to |
|
I think with: .getOctokit(githubToken, {
baseUrl: config.GITHUB_API_URL
}) |
|
@rmg Ah yes just found actions/toolkit#449 |
|
FWIW it took GitHub a few tries to get this right for their own actions: https://github.com/actions/setup-python/pulls?q=is%3Apr+token+is%3Aclosed |
fixes #190