mirror of
https://gitea.com/actions/setup-python.git
synced 2024-11-22 18:19:35 +01:00
npm run build
This commit is contained in:
parent
3910d2645d
commit
17f8fc08c2
2 changed files with 6 additions and 7 deletions
9
dist/setup/index.js
vendored
9
dist/setup/index.js
vendored
|
@ -10957,10 +10957,10 @@ function findAllVersions(toolName, arch) {
|
||||||
return versions;
|
return versions;
|
||||||
}
|
}
|
||||||
exports.findAllVersions = findAllVersions;
|
exports.findAllVersions = findAllVersions;
|
||||||
function getManifestFromRepo(owner, repo, auth, branch = 'master', serverUrl = "https://api.github.com") {
|
function getManifestFromRepo(owner, repo, auth, branch = 'master', serverUrl = 'https://api.github.com') {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let releases = [];
|
let releases = [];
|
||||||
const treeUrl = `${serverUrl}/repos/${owner}/${repo}/git/trees/${branch}`;
|
const treeUrl = `${serverUrl}/${owner}/${repo}/git/trees/${branch}`;
|
||||||
const http = new httpm.HttpClient('tool-cache');
|
const http = new httpm.HttpClient('tool-cache');
|
||||||
const headers = {};
|
const headers = {};
|
||||||
if (auth) {
|
if (auth) {
|
||||||
|
@ -69686,11 +69686,10 @@ const MANIFEST_REPO_OWNER = 'actions';
|
||||||
const MANIFEST_REPO_NAME = 'python-versions';
|
const MANIFEST_REPO_NAME = 'python-versions';
|
||||||
const MANIFEST_REPO_BRANCH = 'main';
|
const MANIFEST_REPO_BRANCH = 'main';
|
||||||
const API_URL = core.getInput('github_api_url');
|
const API_URL = core.getInput('github_api_url');
|
||||||
const GITHUB_API_URL = API_URL ? "https://api.github.com" : API_URL;
|
const GITHUB_API_URL = API_URL ? 'https://api.github.com' : API_URL;
|
||||||
const RAW_URL = core.getInput('github_raw_url');
|
const RAW_URL = core.getInput('github_raw_url');
|
||||||
const GITHUB_RAW_URL = RAW_URL ? "https://raw.githubusercontent.com" : RAW_URL;
|
const GITHUB_RAW_URL = RAW_URL ? 'https://raw.githubusercontent.com' : RAW_URL;
|
||||||
exports.MANIFEST_URL = `${GITHUB_RAW_URL}/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
|
exports.MANIFEST_URL = `${GITHUB_RAW_URL}/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
|
||||||
|
|
||||||
function findReleaseFromManifest(semanticVersionSpec, architecture, manifest) {
|
function findReleaseFromManifest(semanticVersionSpec, architecture, manifest) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
if (!manifest) {
|
if (!manifest) {
|
||||||
|
|
|
@ -11,9 +11,9 @@ const MANIFEST_REPO_OWNER = 'actions';
|
||||||
const MANIFEST_REPO_NAME = 'python-versions';
|
const MANIFEST_REPO_NAME = 'python-versions';
|
||||||
const MANIFEST_REPO_BRANCH = 'main';
|
const MANIFEST_REPO_BRANCH = 'main';
|
||||||
const API_URL = core.getInput('github_api_url');
|
const API_URL = core.getInput('github_api_url');
|
||||||
const GITHUB_API_URL = API_URL ? "https://api.github.com" : API_URL;
|
const GITHUB_API_URL = API_URL ? 'https://api.github.com' : API_URL;
|
||||||
const RAW_URL = core.getInput('github_raw_url');
|
const RAW_URL = core.getInput('github_raw_url');
|
||||||
const GITHUB_RAW_URL = RAW_URL ? "https://raw.githubusercontent.com" : RAW_URL;
|
const GITHUB_RAW_URL = RAW_URL ? 'https://raw.githubusercontent.com' : RAW_URL;
|
||||||
export const MANIFEST_URL = `${GITHUB_RAW_URL}/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
|
export const MANIFEST_URL = `${GITHUB_RAW_URL}/${MANIFEST_REPO_OWNER}/${MANIFEST_REPO_NAME}/${MANIFEST_REPO_BRANCH}/versions-manifest.json`;
|
||||||
|
|
||||||
export async function findReleaseFromManifest(
|
export async function findReleaseFromManifest(
|
||||||
|
|
Loading…
Reference in a new issue