mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
[bot] Update dist directory
This commit is contained in:
committed by
github-actions[bot]
parent
d124ec149f
commit
9ab93ee864
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}`);
|
||||
|
||||
Reference in New Issue
Block a user