mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-28 11:10:59 -05:00
Build outputs
This commit is contained in:
parent
a1980784de
commit
a0fc8606d2
4 changed files with 26 additions and 10 deletions
16
dist/main/index.js
vendored
16
dist/main/index.js
vendored
|
@ -93696,10 +93696,7 @@ function submitDependencyGraphs(dependencyGraphFiles) {
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
if (error instanceof request_error_1.RequestError) {
|
if (error instanceof request_error_1.RequestError) {
|
||||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
core.warning(buildWarningMessage(jsonFile, error));
|
||||||
core.warning(`Failed to submit dependency graph ${relativeJsonFile}.\n` +
|
|
||||||
"Please ensure that the 'contents: write' permission is available for the workflow job.\n" +
|
|
||||||
"Note that this permission is never available for a 'pull_request' trigger from a repository fork.");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw error;
|
throw error;
|
||||||
|
@ -93708,6 +93705,17 @@ function submitDependencyGraphs(dependencyGraphFiles) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function buildWarningMessage(jsonFile, error) {
|
||||||
|
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||||
|
const mainWarning = `Failed to submit dependency graph ${relativeJsonFile}.\n${String(error)}`;
|
||||||
|
if (error.message === 'Resource not accessible by integration') {
|
||||||
|
return `${mainWarning}
|
||||||
|
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||||
|
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
return mainWarning;
|
||||||
|
}
|
||||||
function submitDependencyGraphFile(jsonFile) {
|
function submitDependencyGraphFile(jsonFile) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const octokit = getOctokit();
|
const octokit = getOctokit();
|
||||||
|
|
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
16
dist/post/index.js
vendored
16
dist/post/index.js
vendored
|
@ -93696,10 +93696,7 @@ function submitDependencyGraphs(dependencyGraphFiles) {
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
if (error instanceof request_error_1.RequestError) {
|
if (error instanceof request_error_1.RequestError) {
|
||||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
core.warning(buildWarningMessage(jsonFile, error));
|
||||||
core.warning(`Failed to submit dependency graph ${relativeJsonFile}.\n` +
|
|
||||||
"Please ensure that the 'contents: write' permission is available for the workflow job.\n" +
|
|
||||||
"Note that this permission is never available for a 'pull_request' trigger from a repository fork.");
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw error;
|
throw error;
|
||||||
|
@ -93708,6 +93705,17 @@ function submitDependencyGraphs(dependencyGraphFiles) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function buildWarningMessage(jsonFile, error) {
|
||||||
|
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||||
|
const mainWarning = `Failed to submit dependency graph ${relativeJsonFile}.\n${String(error)}`;
|
||||||
|
if (error.message === 'Resource not accessible by integration') {
|
||||||
|
return `${mainWarning}
|
||||||
|
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||||
|
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
return mainWarning;
|
||||||
|
}
|
||||||
function submitDependencyGraphFile(jsonFile) {
|
function submitDependencyGraphFile(jsonFile) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const octokit = getOctokit();
|
const octokit = getOctokit();
|
||||||
|
|
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue