mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-06-18 05:11:12 +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:
parent
884a30e33c
commit
3460fe1a9a
5 changed files with 18 additions and 10 deletions
dist/update-known-checksums
5
dist/update-known-checksums/index.js
generated
vendored
5
dist/update-known-checksums/index.js
generated
vendored
|
@ -34685,7 +34685,7 @@ function run() {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const checksumFilePath = process.argv.slice(2)[0];
|
||||
const github_token = process.argv.slice(2)[1];
|
||||
const octokit = github.getOctokit(github_token);
|
||||
const octokit = github.getOctokit(github_token, { baseUrl: constants_1.GITHUB_COM_API });
|
||||
const response = yield octokit.paginate(octokit.rest.repos.listReleases, {
|
||||
owner: constants_1.OWNER,
|
||||
repo: constants_1.REPO,
|
||||
|
@ -34711,10 +34711,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";
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue