1
0
Fork 0

[Artifacts] Prep for @actions/artifact 0.6.0 release (#958)

* actions-artifact-0.6.0 release

* Fix lint issue

* Update RELEASES.md
pull/960/head
Konrad Pabjan 2021-12-06 18:39:23 -05:00 committed by GitHub
parent 45a3c7bf81
commit 6fcdd6ab0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 7 deletions

View File

@ -60,4 +60,13 @@
### 0.5.2 ### 0.5.2
- Add HTTP 500 as a retryable status code for artifact upload and download. - Add HTTP 500 as a retryable status code for artifact upload and download.
### 0.6.0
- Support upload from named pipes [#748](https://github.com/actions/toolkit/pull/748)
- Fixes to percentage values being greater than 100% when downloading all artifacts [#889](https://github.com/actions/toolkit/pull/889)
- Improved logging and output during artifact upload [#949](https://github.com/actions/toolkit/pull/949)
- Improvements to client-side validation for certain invalid characters not allowed during upload: [#951](https://github.com/actions/toolkit/pull/951)
- Faster upload speeds for certain types of large files by exempting gzip compression [#956](https://github.com/actions/toolkit/pull/956)
- More detailed logging when dealing with chunked uploads [#957](https://github.com/actions/toolkit/pull/957)

View File

@ -1,6 +1,6 @@
{ {
"name": "@actions/artifact", "name": "@actions/artifact",
"version": "0.5.2", "version": "0.6.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@actions/artifact", "name": "@actions/artifact",
"version": "0.5.2", "version": "0.6.0",
"preview": true, "preview": true,
"description": "Actions artifact lib", "description": "Actions artifact lib",
"keywords": [ "keywords": [

View File

@ -240,6 +240,9 @@ Note: The size of downloaded zips can differ significantly from the reported siz
while (downloadedArtifacts < artifacts.count) { while (downloadedArtifacts < artifacts.count) {
const currentArtifactToDownload = artifacts.value[downloadedArtifacts] const currentArtifactToDownload = artifacts.value[downloadedArtifacts]
downloadedArtifacts += 1 downloadedArtifacts += 1
core.info(
`starting download of artifact ${currentArtifactToDownload.name} : ${downloadedArtifacts}/${artifacts.count}`
)
// Get container entries for the specific artifact // Get container entries for the specific artifact
const items = await downloadHttpClient.getContainerItems( const items = await downloadHttpClient.getContainerItems(

View File

@ -228,9 +228,6 @@ export class DownloadHttpClient {
let response: IHttpClientResponse let response: IHttpClientResponse
try { try {
response = await makeDownloadRequest() response = await makeDownloadRequest()
if (core.isDebug()) {
displayHttpDiagnostics(response)
}
} catch (error) { } catch (error) {
// if an error is caught, it is usually indicative of a timeout so retry the download // if an error is caught, it is usually indicative of a timeout so retry the download
core.info('An error occurred while attempting to download a file') core.info('An error occurred while attempting to download a file')

View File

@ -57,7 +57,7 @@ export class StatusReporter {
`Uploaded ${fileName} (${percentage.slice( `Uploaded ${fileName} (${percentage.slice(
0, 0,
percentage.indexOf('.') + 2 percentage.indexOf('.') + 2
)}%) chunks ${chunkStartIndex}:${chunkEndIndex}` )}%) bytes ${chunkStartIndex}:${chunkEndIndex}`
) )
} }