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