mirror of
https://github.com/actions/download-artifact.git
synced 2024-11-22 13:45:28 +00:00
more debug logs
This commit is contained in:
parent
db146faf7b
commit
ed25d4d912
10
dist/index.js
vendored
10
dist/index.js
vendored
@ -8331,7 +8331,7 @@ class ArtifactHttpClient {
|
||||
request(service, method, contentType, data) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = new URL(`/twirp/${service}/${method}`, this.baseUrl).href;
|
||||
(0, core_1.debug)(`Requesting: ${url}`);
|
||||
(0, core_1.debug)(`[Request] ${method} ${url}`);
|
||||
const headers = {
|
||||
'Content-Type': contentType
|
||||
};
|
||||
@ -8354,6 +8354,8 @@ class ArtifactHttpClient {
|
||||
try {
|
||||
const response = yield operation();
|
||||
const statusCode = response.message.statusCode;
|
||||
(0, core_1.debug)(`[Response] ${response.message.statusCode}`);
|
||||
(0, core_1.debug)(JSON.stringify(response.message.headers, null, 2));
|
||||
if (this.isSuccessStatusCode(statusCode)) {
|
||||
return response;
|
||||
}
|
||||
@ -119373,7 +119375,8 @@ function run() {
|
||||
if (!targetArtifact) {
|
||||
throw new Error(`Artifact '${inputs.name}' not found`);
|
||||
}
|
||||
core.debug(`Found named artifact '${inputs.name}' (ID: ${targetArtifact.id}, Size: ${targetArtifact.size})`);
|
||||
core.debug('Found named artifact:');
|
||||
core.debug(JSON.stringify(targetArtifact, null, 2));
|
||||
artifacts = [targetArtifact];
|
||||
}
|
||||
else {
|
||||
@ -119381,7 +119384,8 @@ function run() {
|
||||
if (listArtifactResponse.artifacts.length === 0) {
|
||||
throw new Error(`No artifacts found for run '${inputs.runID}' in '${inputs.repository}'`);
|
||||
}
|
||||
core.debug(`Found ${listArtifactResponse.artifacts.length} artifacts`);
|
||||
core.debug(`Found ${listArtifactResponse.artifacts.length} artifacts:`);
|
||||
core.debug(JSON.stringify(listArtifactResponse, null, 2));
|
||||
artifacts = listArtifactResponse.artifacts;
|
||||
}
|
||||
const downloadPromises = artifacts.map(artifact => artifactClient.downloadArtifact(artifact.id, Object.assign(Object.assign({}, options), { path: path.join(resolvedPath, artifact.name) })));
|
||||
|
@ -63,9 +63,8 @@ async function run(): Promise<void> {
|
||||
throw new Error(`Artifact '${inputs.name}' not found`)
|
||||
}
|
||||
|
||||
core.debug(
|
||||
`Found named artifact '${inputs.name}' (ID: ${targetArtifact.id}, Size: ${targetArtifact.size})`
|
||||
)
|
||||
core.debug('Found named artifact:')
|
||||
core.debug(JSON.stringify(targetArtifact, null, 2))
|
||||
|
||||
artifacts = [targetArtifact]
|
||||
} else {
|
||||
@ -77,7 +76,8 @@ async function run(): Promise<void> {
|
||||
)
|
||||
}
|
||||
|
||||
core.debug(`Found ${listArtifactResponse.artifacts.length} artifacts`)
|
||||
core.debug(`Found ${listArtifactResponse.artifacts.length} artifacts:`)
|
||||
core.debug(JSON.stringify(listArtifactResponse, null, 2))
|
||||
artifacts = listArtifactResponse.artifacts
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user