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
4a315dceb2
commit
23dad2b1c7
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
|
||||
|
||||
Reference in New Issue
Block a user