mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-03-14 15:00:10 +08:00
remove try catch to get real error message
This commit is contained in:
parent
621295feb1
commit
cb8703f3ca
5
dist/cleanup/index.js
generated
vendored
5
dist/cleanup/index.js
generated
vendored
@ -74916,7 +74916,6 @@ function createPRComment(content) {
|
|||||||
exports.createPRComment = createPRComment;
|
exports.createPRComment = createPRComment;
|
||||||
function saveReportJson(content) {
|
function saveReportJson(content) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
|
||||||
const octokit = new rest_1.Octokit({
|
const octokit = new rest_1.Octokit({
|
||||||
auth: getGitHubToken(),
|
auth: getGitHubToken(),
|
||||||
request: {
|
request: {
|
||||||
@ -74940,10 +74939,6 @@ function saveReportJson(content) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(data);
|
console.log(data);
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
core.error(`Failed to create pull request comment. Please make sure this job has 'write' permissions for the 'pull-requests' scope (see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)? Internal error: ${err}`);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.saveReportJson = saveReportJson;
|
exports.saveReportJson = saveReportJson;
|
||||||
|
5
dist/main/index.js
generated
vendored
5
dist/main/index.js
generated
vendored
@ -75913,7 +75913,6 @@ function createPRComment(content) {
|
|||||||
exports.createPRComment = createPRComment;
|
exports.createPRComment = createPRComment;
|
||||||
function saveReportJson(content) {
|
function saveReportJson(content) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
|
||||||
const octokit = new rest_1.Octokit({
|
const octokit = new rest_1.Octokit({
|
||||||
auth: getGitHubToken(),
|
auth: getGitHubToken(),
|
||||||
request: {
|
request: {
|
||||||
@ -75937,10 +75936,6 @@ function saveReportJson(content) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(data);
|
console.log(data);
|
||||||
}
|
|
||||||
catch (err) {
|
|
||||||
core.error(`Failed to create pull request comment. Please make sure this job has 'write' permissions for the 'pull-requests' scope (see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)? Internal error: ${err}`);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.saveReportJson = saveReportJson;
|
exports.saveReportJson = saveReportJson;
|
||||||
|
@ -178,7 +178,6 @@ export async function createPRComment(content: string): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function saveReportJson(content: string): Promise<void> {
|
export async function saveReportJson(content: string): Promise<void> {
|
||||||
try {
|
|
||||||
const octokit = new Octokit({
|
const octokit = new Octokit({
|
||||||
auth: getGitHubToken(),
|
auth: getGitHubToken(),
|
||||||
request: {
|
request: {
|
||||||
@ -206,9 +205,4 @@ export async function saveReportJson(content: string): Promise<void> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
console.log(data);
|
console.log(data);
|
||||||
} catch (err) {
|
|
||||||
core.error(
|
|
||||||
`Failed to create pull request comment. Please make sure this job has 'write' permissions for the 'pull-requests' scope (see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions)? Internal error: ${err}`
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user