mirror of
https://github.com/gradle/actions
synced 2024-11-27 11:52:24 +00:00
[bot] Update dist directory
This commit is contained in:
parent
4a315dceb2
commit
23dad2b1c7
10 changed files with 47 additions and 14 deletions
17
dist/dependency-submission/main/index.js
vendored
17
dist/dependency-submission/main/index.js
vendored
|
@ -144304,6 +144304,9 @@ class DependencyGraphConfig {
|
|||
getReportDirectory() {
|
||||
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
|
||||
}
|
||||
getDownloadArtifactName() {
|
||||
return process.env['DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME'];
|
||||
}
|
||||
static constructJobCorrelator(workflow, jobId, matrixJson) {
|
||||
const matrixString = this.describeMatrix(matrixJson);
|
||||
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
|
||||
|
@ -144741,7 +144744,7 @@ async function downloadAndSubmitDependencyGraphs(config) {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
await submitDependencyGraphs(await downloadDependencyGraphs());
|
||||
await submitDependencyGraphs(await downloadDependencyGraphs(config));
|
||||
}
|
||||
catch (e) {
|
||||
warnOrFail(config, configuration_1.DependencyGraphOption.DownloadAndSubmit, e);
|
||||
|
@ -144773,7 +144776,7 @@ async function findAndUploadDependencyGraphs(config) {
|
|||
}
|
||||
await uploadDependencyGraphs(await findDependencyGraphFiles(), config);
|
||||
}
|
||||
async function downloadDependencyGraphs() {
|
||||
async function downloadDependencyGraphs(config) {
|
||||
const findBy = github.context.payload.workflow_run
|
||||
? {
|
||||
token: (0, configuration_1.getGithubToken)(),
|
||||
|
@ -144783,10 +144786,15 @@ async function downloadDependencyGraphs() {
|
|||
}
|
||||
: undefined;
|
||||
const artifactClient = new artifact_1.DefaultArtifactClient();
|
||||
const dependencyGraphArtifacts = (await artifactClient.listArtifacts({
|
||||
let dependencyGraphArtifacts = (await artifactClient.listArtifacts({
|
||||
latest: true,
|
||||
findBy
|
||||
})).artifacts.filter(artifact => artifact.name.startsWith(DEPENDENCY_GRAPH_PREFIX));
|
||||
const artifactName = config.getDownloadArtifactName();
|
||||
if (artifactName) {
|
||||
core.info(`Filtering for artifacts ending with ${artifactName}`);
|
||||
dependencyGraphArtifacts = dependencyGraphArtifacts.filter(artifact => artifact.name.includes(artifactName));
|
||||
}
|
||||
for (const artifact of dependencyGraphArtifacts) {
|
||||
const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, {
|
||||
findBy
|
||||
|
@ -144934,6 +144942,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.run = void 0;
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
const setupGradle = __importStar(__nccwpck_require__(18652));
|
||||
const gradle = __importStar(__nccwpck_require__(94475));
|
||||
const dependencyGraph = __importStar(__nccwpck_require__(80));
|
||||
|
@ -144945,6 +144954,7 @@ async function run() {
|
|||
try {
|
||||
(0, configuration_1.setActionId)('gradle/actions/dependency-submission');
|
||||
await setupGradle.setup(new configuration_1.CacheConfig(), new configuration_1.BuildScanConfig());
|
||||
const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED'];
|
||||
const config = new configuration_1.DependencyGraphConfig();
|
||||
await dependencyGraph.setup(config);
|
||||
if (config.getDependencyGraphOption() === configuration_1.DependencyGraphOption.DownloadAndSubmit) {
|
||||
|
@ -144963,6 +144973,7 @@ async function run() {
|
|||
const args = (0, string_argv_1.parseArgsStringToArgv)(executionArgs);
|
||||
await gradle.provisionAndMaybeExecute(executionConfig.getGradleVersion(), executionConfig.getBuildRootDirectory(), args);
|
||||
await dependencyGraph.complete(config);
|
||||
core.exportVariable('GITHUB_DEPENDENCY_GRAPH_ENABLED', originallyEnabled);
|
||||
(0, deprecation_collector_1.saveDeprecationState)();
|
||||
}
|
||||
catch (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
3
dist/dependency-submission/post/index.js
vendored
3
dist/dependency-submission/post/index.js
vendored
|
@ -98279,6 +98279,9 @@ class DependencyGraphConfig {
|
|||
getReportDirectory() {
|
||||
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
|
||||
}
|
||||
getDownloadArtifactName() {
|
||||
return process.env['DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME'];
|
||||
}
|
||||
static constructJobCorrelator(workflow, jobId, matrixJson) {
|
||||
const matrixString = this.describeMatrix(matrixJson);
|
||||
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
|
||||
|
|
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
|
@ -144304,6 +144304,9 @@ class DependencyGraphConfig {
|
|||
getReportDirectory() {
|
||||
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
|
||||
}
|
||||
getDownloadArtifactName() {
|
||||
return process.env['DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME'];
|
||||
}
|
||||
static constructJobCorrelator(workflow, jobId, matrixJson) {
|
||||
const matrixString = this.describeMatrix(matrixJson);
|
||||
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
|
||||
|
@ -144741,7 +144744,7 @@ async function downloadAndSubmitDependencyGraphs(config) {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
await submitDependencyGraphs(await downloadDependencyGraphs());
|
||||
await submitDependencyGraphs(await downloadDependencyGraphs(config));
|
||||
}
|
||||
catch (e) {
|
||||
warnOrFail(config, configuration_1.DependencyGraphOption.DownloadAndSubmit, e);
|
||||
|
@ -144773,7 +144776,7 @@ async function findAndUploadDependencyGraphs(config) {
|
|||
}
|
||||
await uploadDependencyGraphs(await findDependencyGraphFiles(), config);
|
||||
}
|
||||
async function downloadDependencyGraphs() {
|
||||
async function downloadDependencyGraphs(config) {
|
||||
const findBy = github.context.payload.workflow_run
|
||||
? {
|
||||
token: (0, configuration_1.getGithubToken)(),
|
||||
|
@ -144783,10 +144786,15 @@ async function downloadDependencyGraphs() {
|
|||
}
|
||||
: undefined;
|
||||
const artifactClient = new artifact_1.DefaultArtifactClient();
|
||||
const dependencyGraphArtifacts = (await artifactClient.listArtifacts({
|
||||
let dependencyGraphArtifacts = (await artifactClient.listArtifacts({
|
||||
latest: true,
|
||||
findBy
|
||||
})).artifacts.filter(artifact => artifact.name.startsWith(DEPENDENCY_GRAPH_PREFIX));
|
||||
const artifactName = config.getDownloadArtifactName();
|
||||
if (artifactName) {
|
||||
core.info(`Filtering for artifacts ending with ${artifactName}`);
|
||||
dependencyGraphArtifacts = dependencyGraphArtifacts.filter(artifact => artifact.name.includes(artifactName));
|
||||
}
|
||||
for (const artifact of dependencyGraphArtifacts) {
|
||||
const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, {
|
||||
findBy
|
||||
|
|
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
|
@ -144304,6 +144304,9 @@ class DependencyGraphConfig {
|
|||
getReportDirectory() {
|
||||
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
|
||||
}
|
||||
getDownloadArtifactName() {
|
||||
return process.env['DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME'];
|
||||
}
|
||||
static constructJobCorrelator(workflow, jobId, matrixJson) {
|
||||
const matrixString = this.describeMatrix(matrixJson);
|
||||
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
|
||||
|
@ -144741,7 +144744,7 @@ async function downloadAndSubmitDependencyGraphs(config) {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
await submitDependencyGraphs(await downloadDependencyGraphs());
|
||||
await submitDependencyGraphs(await downloadDependencyGraphs(config));
|
||||
}
|
||||
catch (e) {
|
||||
warnOrFail(config, configuration_1.DependencyGraphOption.DownloadAndSubmit, e);
|
||||
|
@ -144773,7 +144776,7 @@ async function findAndUploadDependencyGraphs(config) {
|
|||
}
|
||||
await uploadDependencyGraphs(await findDependencyGraphFiles(), config);
|
||||
}
|
||||
async function downloadDependencyGraphs() {
|
||||
async function downloadDependencyGraphs(config) {
|
||||
const findBy = github.context.payload.workflow_run
|
||||
? {
|
||||
token: (0, configuration_1.getGithubToken)(),
|
||||
|
@ -144783,10 +144786,15 @@ async function downloadDependencyGraphs() {
|
|||
}
|
||||
: undefined;
|
||||
const artifactClient = new artifact_1.DefaultArtifactClient();
|
||||
const dependencyGraphArtifacts = (await artifactClient.listArtifacts({
|
||||
let dependencyGraphArtifacts = (await artifactClient.listArtifacts({
|
||||
latest: true,
|
||||
findBy
|
||||
})).artifacts.filter(artifact => artifact.name.startsWith(DEPENDENCY_GRAPH_PREFIX));
|
||||
const artifactName = config.getDownloadArtifactName();
|
||||
if (artifactName) {
|
||||
core.info(`Filtering for artifacts ending with ${artifactName}`);
|
||||
dependencyGraphArtifacts = dependencyGraphArtifacts.filter(artifact => artifact.name.includes(artifactName));
|
||||
}
|
||||
for (const artifact of dependencyGraphArtifacts) {
|
||||
const downloadedArtifact = await artifactClient.downloadArtifact(artifact.id, {
|
||||
findBy
|
||||
|
|
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
3
dist/wrapper-validation/main/index.js
vendored
3
dist/wrapper-validation/main/index.js
vendored
|
@ -89928,6 +89928,9 @@ class DependencyGraphConfig {
|
|||
getReportDirectory() {
|
||||
return path_1.default.resolve(getWorkspaceDirectory(), 'dependency-graph-reports');
|
||||
}
|
||||
getDownloadArtifactName() {
|
||||
return process.env['DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME'];
|
||||
}
|
||||
static constructJobCorrelator(workflow, jobId, matrixJson) {
|
||||
const matrixString = this.describeMatrix(matrixJson);
|
||||
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`;
|
||||
|
|
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…
Reference in a new issue