mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-03-13 14:30:15 +08:00
add import for fetch
This commit is contained in:
parent
6f0209b406
commit
9bbf39d46e
8
dist/cleanup/index.js
generated
vendored
8
dist/cleanup/index.js
generated
vendored
@ -74446,6 +74446,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.createTree = exports.createRef = exports.createPRComment = exports.isPREvent = exports.toSemVer = exports.calculateSHA256 = exports.downloadExtractAndCacheJDK = exports.downloadAndExtractJDK = exports.getMatchingTags = exports.getTaggedRelease = exports.getLatestRelease = exports.exec = void 0;
|
||||
const c = __importStar(__nccwpck_require__(2764));
|
||||
@ -74459,6 +74462,7 @@ const fs_1 = __nccwpck_require__(7147);
|
||||
const crypto_1 = __nccwpck_require__(6113);
|
||||
const path_1 = __nccwpck_require__(1017);
|
||||
const rest_1 = __nccwpck_require__(6175);
|
||||
const node_fetch_1 = __importDefault(__nccwpck_require__(831));
|
||||
// Set up Octokit for github.com only and in the same way as @actions/github (see https://git.io/Jy9YP)
|
||||
const baseUrl = 'https://api.github.com';
|
||||
const GitHubDotCom = rest_1.Octokit.defaults({
|
||||
@ -74642,7 +74646,7 @@ function createRef(sha) {
|
||||
const octokit = new rest_1.Octokit({
|
||||
auth: getGitHubToken(),
|
||||
request: {
|
||||
fetch: fetch,
|
||||
fetch: node_fetch_1.default,
|
||||
},
|
||||
});
|
||||
const context = github.context;
|
||||
@ -74657,7 +74661,7 @@ function createTree(metadataJson) {
|
||||
const octokit = new rest_1.Octokit({
|
||||
auth: getGitHubToken(),
|
||||
request: {
|
||||
fetch: fetch,
|
||||
fetch: node_fetch_1.default,
|
||||
},
|
||||
});
|
||||
const context = github.context;
|
||||
|
8
dist/main/index.js
generated
vendored
8
dist/main/index.js
generated
vendored
@ -75443,6 +75443,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.createTree = exports.createRef = exports.createPRComment = exports.isPREvent = exports.toSemVer = exports.calculateSHA256 = exports.downloadExtractAndCacheJDK = exports.downloadAndExtractJDK = exports.getMatchingTags = exports.getTaggedRelease = exports.getLatestRelease = exports.exec = void 0;
|
||||
const c = __importStar(__nccwpck_require__(2764));
|
||||
@ -75456,6 +75459,7 @@ const fs_1 = __nccwpck_require__(7147);
|
||||
const crypto_1 = __nccwpck_require__(6113);
|
||||
const path_1 = __nccwpck_require__(1017);
|
||||
const rest_1 = __nccwpck_require__(6175);
|
||||
const node_fetch_1 = __importDefault(__nccwpck_require__(831));
|
||||
// Set up Octokit for github.com only and in the same way as @actions/github (see https://git.io/Jy9YP)
|
||||
const baseUrl = 'https://api.github.com';
|
||||
const GitHubDotCom = rest_1.Octokit.defaults({
|
||||
@ -75639,7 +75643,7 @@ function createRef(sha) {
|
||||
const octokit = new rest_1.Octokit({
|
||||
auth: getGitHubToken(),
|
||||
request: {
|
||||
fetch: fetch,
|
||||
fetch: node_fetch_1.default,
|
||||
},
|
||||
});
|
||||
const context = github.context;
|
||||
@ -75654,7 +75658,7 @@ function createTree(metadataJson) {
|
||||
const octokit = new rest_1.Octokit({
|
||||
auth: getGitHubToken(),
|
||||
request: {
|
||||
fetch: fetch,
|
||||
fetch: node_fetch_1.default,
|
||||
},
|
||||
});
|
||||
const context = github.context;
|
||||
|
@ -10,6 +10,7 @@ import {createHash} from 'crypto'
|
||||
import {join} from 'path'
|
||||
import {Base64} from "js-base64";
|
||||
import { Octokit } from '@octokit/rest';
|
||||
import fetch from "node-fetch";
|
||||
|
||||
// Set up Octokit for github.com only and in the same way as @actions/github (see https://git.io/Jy9YP)
|
||||
const baseUrl = 'https://api.github.com'
|
||||
|
Loading…
x
Reference in New Issue
Block a user