mirror of
https://github.com/gradle/actions.git
synced 2025-04-20 09:49:19 +08:00
[bot] Update dist directory
This commit is contained in:
parent
d124ec149f
commit
9ab93ee864
14
dist/dependency-submission/main/index.js
vendored
14
dist/dependency-submission/main/index.js
vendored
@ -144779,17 +144779,15 @@ async function submitDependencyGraphs(dependencyGraphFiles) {
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof request_error_1.RequestError) {
|
||||
throw new Error(translateErrorMessage(dependencyGraphFile, error));
|
||||
}
|
||||
else {
|
||||
throw error;
|
||||
error.message = translateErrorMessage(dependencyGraphFile, error);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
function translateErrorMessage(jsonFile, error) {
|
||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${String(error)}`;
|
||||
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}`;
|
||||
if (error.message === 'Resource not accessible by integration') {
|
||||
return `${mainWarning}
|
||||
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||
@ -145097,6 +145095,9 @@ function handleMainActionError(error) {
|
||||
}
|
||||
else if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.setFailed(String(error));
|
||||
@ -145109,6 +145110,9 @@ exports.handleMainActionError = handleMainActionError;
|
||||
function handlePostActionError(error) {
|
||||
if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);
|
||||
|
2
dist/dependency-submission/main/index.js.map
vendored
2
dist/dependency-submission/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
6
dist/dependency-submission/post/index.js
vendored
6
dist/dependency-submission/post/index.js
vendored
@ -96253,6 +96253,9 @@ function handleMainActionError(error) {
|
||||
}
|
||||
else if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.setFailed(String(error));
|
||||
@ -96265,6 +96268,9 @@ exports.handleMainActionError = handleMainActionError;
|
||||
function handlePostActionError(error) {
|
||||
if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);
|
||||
|
2
dist/dependency-submission/post/index.js.map
vendored
2
dist/dependency-submission/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
14
dist/setup-gradle/main/index.js
vendored
14
dist/setup-gradle/main/index.js
vendored
@ -144779,17 +144779,15 @@ async function submitDependencyGraphs(dependencyGraphFiles) {
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof request_error_1.RequestError) {
|
||||
throw new Error(translateErrorMessage(dependencyGraphFile, error));
|
||||
}
|
||||
else {
|
||||
throw error;
|
||||
error.message = translateErrorMessage(dependencyGraphFile, error);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
function translateErrorMessage(jsonFile, error) {
|
||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${String(error)}`;
|
||||
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}`;
|
||||
if (error.message === 'Resource not accessible by integration') {
|
||||
return `${mainWarning}
|
||||
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||
@ -145025,6 +145023,9 @@ function handleMainActionError(error) {
|
||||
}
|
||||
else if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.setFailed(String(error));
|
||||
@ -145037,6 +145038,9 @@ exports.handleMainActionError = handleMainActionError;
|
||||
function handlePostActionError(error) {
|
||||
if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);
|
||||
|
2
dist/setup-gradle/main/index.js.map
vendored
2
dist/setup-gradle/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
14
dist/setup-gradle/post/index.js
vendored
14
dist/setup-gradle/post/index.js
vendored
@ -142232,17 +142232,15 @@ async function submitDependencyGraphs(dependencyGraphFiles) {
|
||||
}
|
||||
catch (error) {
|
||||
if (error instanceof request_error_1.RequestError) {
|
||||
throw new Error(translateErrorMessage(dependencyGraphFile, error));
|
||||
}
|
||||
else {
|
||||
throw error;
|
||||
error.message = translateErrorMessage(dependencyGraphFile, error);
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
function translateErrorMessage(jsonFile, error) {
|
||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${String(error)}`;
|
||||
const mainWarning = `Dependency submission failed for ${relativeJsonFile}.\n${error.message}`;
|
||||
if (error.message === 'Resource not accessible by integration') {
|
||||
return `${mainWarning}
|
||||
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||
@ -142478,6 +142476,9 @@ function handleMainActionError(error) {
|
||||
}
|
||||
else if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.setFailed(String(error));
|
||||
@ -142490,6 +142491,9 @@ exports.handleMainActionError = handleMainActionError;
|
||||
function handlePostActionError(error) {
|
||||
if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);
|
||||
|
2
dist/setup-gradle/post/index.js.map
vendored
2
dist/setup-gradle/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
6
dist/wrapper-validation/main/index.js
vendored
6
dist/wrapper-validation/main/index.js
vendored
@ -90294,6 +90294,9 @@ function handleMainActionError(error) {
|
||||
}
|
||||
else if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.setFailed(String(error));
|
||||
@ -90306,6 +90309,9 @@ exports.handleMainActionError = handleMainActionError;
|
||||
function handlePostActionError(error) {
|
||||
if (error instanceof JobFailure) {
|
||||
core.setFailed(String(error));
|
||||
if (error.stack) {
|
||||
core.info(error.stack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
core.warning(`Unhandled error in Gradle post-action - job will continue: ${error}`);
|
||||
|
2
dist/wrapper-validation/main/index.js.map
vendored
2
dist/wrapper-validation/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user