Skip to content

Commit 9ab93ee

Browse files
bigdazgithub-actions[bot]
authored andcommitted
[bot] Update dist directory
1 parent d124ec1 commit 9ab93ee

File tree

10 files changed

+44
-20
lines changed

10 files changed

+44
-20
lines changed

dist/dependency-submission/main/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144779,17 +144779,15 @@ async function submitDependencyGraphs(dependencyGraphFiles) {
144779144779
}
144780144780
catch (error) {
144781144781
if (error instanceof request_error_1.RequestError) {
144782-
throw new Error(translateErrorMessage(dependencyGraphFile, error));
144783-
}
144784-
else {
144785-
throw error;
144782+
error.message = translateErrorMessage(dependencyGraphFile, error);
144786144783
}
144784+
throw error;
144787144785
}
144788144786
}
144789144787
}
144790144788
function translateErrorMessage(jsonFile, error) {
144791144789
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
144792-
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${String(error)}`;
144790+
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}`;
144793144791
if (error.message === 'Resource not accessible by integration') {
144794144792
return `${mainWarning}
144795144793
Please ensure that the 'contents: write' permission is available for the workflow job.
@@ -145097,6 +145095,9 @@ function handleMainActionError(error) {
145097145095
}
145098145096
else if (error instanceof JobFailure) {
145099145097
core.setFailed(String(error));
145098+
if (error.stack) {
145099+
core.info(error.stack);
145100+
}
145100145101
}
145101145102
else {
145102145103
core.setFailed(String(error));
@@ -145109,6 +145110,9 @@ exports.handleMainActionError = handleMainActionError;
145109145110
function handlePostActionError(error) {
145110145111
if (error instanceof JobFailure) {
145111145112
core.setFailed(String(error));
145113+
if (error.stack) {
145114+
core.info(error.stack);
145115+
}
145112145116
}
145113145117
else {
145114145118
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);

dist/dependency-submission/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dependency-submission/post/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96253,6 +96253,9 @@ function handleMainActionError(error) {
9625396253
}
9625496254
else if (error instanceof JobFailure) {
9625596255
core.setFailed(String(error));
96256+
if (error.stack) {
96257+
core.info(error.stack);
96258+
}
9625696259
}
9625796260
else {
9625896261
core.setFailed(String(error));
@@ -96265,6 +96268,9 @@ exports.handleMainActionError = handleMainActionError;
9626596268
function handlePostActionError(error) {
9626696269
if (error instanceof JobFailure) {
9626796270
core.setFailed(String(error));
96271+
if (error.stack) {
96272+
core.info(error.stack);
96273+
}
9626896274
}
9626996275
else {
9627096276
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);

dist/dependency-submission/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup-gradle/main/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144779,17 +144779,15 @@ async function submitDependencyGraphs(dependencyGraphFiles) {
144779144779
}
144780144780
catch (error) {
144781144781
if (error instanceof request_error_1.RequestError) {
144782-
throw new Error(translateErrorMessage(dependencyGraphFile, error));
144783-
}
144784-
else {
144785-
throw error;
144782+
error.message = translateErrorMessage(dependencyGraphFile, error);
144786144783
}
144784+
throw error;
144787144785
}
144788144786
}
144789144787
}
144790144788
function translateErrorMessage(jsonFile, error) {
144791144789
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
144792-
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${String(error)}`;
144790+
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}`;
144793144791
if (error.message === 'Resource not accessible by integration') {
144794144792
return `${mainWarning}
144795144793
Please ensure that the 'contents: write' permission is available for the workflow job.
@@ -145025,6 +145023,9 @@ function handleMainActionError(error) {
145025145023
}
145026145024
else if (error instanceof JobFailure) {
145027145025
core.setFailed(String(error));
145026+
if (error.stack) {
145027+
core.info(error.stack);
145028+
}
145028145029
}
145029145030
else {
145030145031
core.setFailed(String(error));
@@ -145037,6 +145038,9 @@ exports.handleMainActionError = handleMainActionError;
145037145038
function handlePostActionError(error) {
145038145039
if (error instanceof JobFailure) {
145039145040
core.setFailed(String(error));
145041+
if (error.stack) {
145042+
core.info(error.stack);
145043+
}
145040145044
}
145041145045
else {
145042145046
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);

dist/setup-gradle/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup-gradle/post/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142232,17 +142232,15 @@ async function submitDependencyGraphs(dependencyGraphFiles) {
142232142232
}
142233142233
catch (error) {
142234142234
if (error instanceof request_error_1.RequestError) {
142235-
throw new Error(translateErrorMessage(dependencyGraphFile, error));
142236-
}
142237-
else {
142238-
throw error;
142235+
error.message = translateErrorMessage(dependencyGraphFile, error);
142239142236
}
142237+
throw error;
142240142238
}
142241142239
}
142242142240
}
142243142241
function translateErrorMessage(jsonFile, error) {
142244142242
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
142245-
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${String(error)}`;
142243+
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}`;
142246142244
if (error.message === 'Resource not accessible by integration') {
142247142245
return `${mainWarning}
142248142246
Please ensure that the 'contents: write' permission is available for the workflow job.
@@ -142478,6 +142476,9 @@ function handleMainActionError(error) {
142478142476
}
142479142477
else if (error instanceof JobFailure) {
142480142478
core.setFailed(String(error));
142479+
if (error.stack) {
142480+
core.info(error.stack);
142481+
}
142481142482
}
142482142483
else {
142483142484
core.setFailed(String(error));
@@ -142490,6 +142491,9 @@ exports.handleMainActionError = handleMainActionError;
142490142491
function handlePostActionError(error) {
142491142492
if (error instanceof JobFailure) {
142492142493
core.setFailed(String(error));
142494+
if (error.stack) {
142495+
core.info(error.stack);
142496+
}
142493142497
}
142494142498
else {
142495142499
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);

dist/setup-gradle/post/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/wrapper-validation/main/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90294,6 +90294,9 @@ function handleMainActionError(error) {
9029490294
}
9029590295
else if (error instanceof JobFailure) {
9029690296
core.setFailed(String(error));
90297+
if (error.stack) {
90298+
core.info(error.stack);
90299+
}
9029790300
}
9029890301
else {
9029990302
core.setFailed(String(error));
@@ -90306,6 +90309,9 @@ exports.handleMainActionError = handleMainActionError;
9030690309
function handlePostActionError(error) {
9030790310
if (error instanceof JobFailure) {
9030890311
core.setFailed(String(error));
90312+
if (error.stack) {
90313+
core.info(error.stack);
90314+
}
9030990315
}
9031090316
else {
9031190317
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);

dist/wrapper-validation/main/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)