mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 08:12:10 -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) {
|
||||
if (error instanceof request_error_1.RequestError) {
|
||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||
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.");
|
||||
core.warning(buildWarningMessage(jsonFile, error));
|
||||
}
|
||||
else {
|
||||
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) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
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) {
|
||||
if (error instanceof request_error_1.RequestError) {
|
||||
const relativeJsonFile = getRelativePathFromWorkspace(jsonFile);
|
||||
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.");
|
||||
core.warning(buildWarningMessage(jsonFile, error));
|
||||
}
|
||||
else {
|
||||
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) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
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