From 0e0674b993af80e696b082bdf628d763109935c7 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Sun, 25 Aug 2024 04:23:58 +0000 Subject: [PATCH] replace api.github.com to gitea.cn/api/v1 --- dist/setup/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index b0a3f4e..30c885d 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -6346,7 +6346,7 @@ var MediaTypes; })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + * @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1 */ function getProxyUrl(serverUrl) { const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); @@ -6693,7 +6693,7 @@ class HttpClient { /** * Gets an http agent. This function is useful when you need an http agent that handles * routing through a proxy server - depending upon the url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + * @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1 */ getAgent(serverUrl) { const parsedUrl = new URL(serverUrl); @@ -8224,7 +8224,7 @@ exports.findAllVersions = findAllVersions; function getManifestFromRepo(owner, repo, auth, branch = 'master') { return __awaiter(this, void 0, void 0, function* () { let releases = []; - const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`; + const treeUrl = `https://gitea.cn/api/v1/repos/${owner}/${repo}/git/trees/${branch}`; const http = new httpm.HttpClient('tool-cache'); const headers = {}; if (auth) { @@ -8425,7 +8425,7 @@ var MediaTypes; })(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + * @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1 */ function getProxyUrl(serverUrl) { let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); @@ -8731,7 +8731,7 @@ class HttpClient { /** * Gets an http agent. This function is useful when you need an http agent that handles * routing through a proxy server - depending upon the url and proxy environment variables. - * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + * @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1 */ getAgent(serverUrl) { let parsedUrl = new URL(serverUrl);