mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-07-16 02:50:56 +00:00
Always use api.github.com (#191)
The octokit client would default to the URL of enterprise instances and then not be able to find the uv repo. Closes: #188
This commit is contained in:
committed by
GitHub
parent
884a30e33c
commit
3460fe1a9a
7
dist/setup/index.js
generated
vendored
7
dist/setup/index.js
generated
vendored
@ -98975,7 +98975,7 @@ function resolveVersion(versionInput, githubToken) {
|
||||
}
|
||||
function getAvailableVersions(githubToken) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const octokit = github.getOctokit(githubToken);
|
||||
const octokit = github.getOctokit(githubToken, { baseUrl: constants_1.GITHUB_COM_API });
|
||||
const response = yield octokit.paginate(octokit.rest.repos.listReleases, {
|
||||
owner: constants_1.OWNER,
|
||||
repo: constants_1.REPO,
|
||||
@ -98985,7 +98985,7 @@ function getAvailableVersions(githubToken) {
|
||||
}
|
||||
function getLatestVersion(githubToken) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const octokit = github.getOctokit(githubToken);
|
||||
const octokit = github.getOctokit(githubToken, { baseUrl: constants_1.GITHUB_COM_API });
|
||||
const { data: latestRelease } = yield octokit.rest.repos.getLatestRelease({
|
||||
owner: constants_1.OWNER,
|
||||
repo: constants_1.REPO,
|
||||
@ -99277,10 +99277,11 @@ run();
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.TOOL_CACHE_NAME = exports.OWNER = exports.REPO = void 0;
|
||||
exports.GITHUB_COM_API = exports.TOOL_CACHE_NAME = exports.OWNER = exports.REPO = void 0;
|
||||
exports.REPO = "uv";
|
||||
exports.OWNER = "astral-sh";
|
||||
exports.TOOL_CACHE_NAME = "uv";
|
||||
exports.GITHUB_COM_API = "https://api.github.com";
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
Reference in New Issue
Block a user