fix(deps): update dependency @actions/artifact to v6 #92
Reference in New Issue
Block a user
Delete Branch "renovate/actions-artifact-6.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
^1.1.2→^6.0.0Release Notes
actions/toolkit (@actions/artifact)
v6.2.1filename*field in thecontent-dispositionheader. This allows us to correctly download files and artifacts with Chinese/Japanese/Korean (among other) characters in their name.v6.2.0actions/upload-artifact). Callers must pass theskipArchiveoption touploadArtifact. Only single files can be uploaded at a time right now. Default behavior should remain unchanged ifskipArchive = false. WhenskipArchive = true, the name of the file is used as the name of the artifact for consistency with the downloads: you uploadartifact.txt, you downloadartifact.txt.v6.1.0v6.0.0import()instead ofrequire()v5.0.3@actions/http-clientto3.0.2v5.0.1@azure/storage-blobfrom^12.15.0to^12.29.1#2211@azure/core-httpdependency (now uses@azure/core-rest-pipelinevia storage-blob)v5.0.0@actions/coreto v2@actions/http-clientto v3v4.0.0v2.3.2v2.3.1v2.3.0v2.2.2v2.2.1ACTIONS_ARTIFACT_UPLOAD_CONCURRENCYandACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MSenvironment variables #1928v2.2.0v2.1.11crypto#1815v2.1.10v2.1.9v2.1.8*.localhostdomains for hostname checks for local development.v2.1.7unzip.Extract()v2.1.6v2.1.5archiverdependency to 7.0.1v2.1.4v2.1.3v2.1.2unzip.Parse()instead ofunzip.Extract()for greater control of unzipping artifactsv2.1.1crypto#1815v2.1.0ArtifactClient#deleteArtifactto delete artifacts by name #1626v2.0.1v2.0.0Major release. Supports new Artifact backend for improved speed, reliability and behavior.
Numerous API changes, some breaking.
Blog post with more info
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: package.json
The PR updates
@actions/artifactfrom v1 to v6. However, according to the GitHub Actions Artifacts v4+ documentation, the API underwent breaking changes. Specifically, thecreate()function and theuploadArtifactmethod have been replaced by a class-based approach (or changed exports) and new method signatures.Currently, the code in
monitor.jsattempts to use the old v1-style API which leads to a build failure as reported by Renovate:export 'create' (imported as 'create') was not found in '@actions/artifact'Summary
@actions/artifactv6 library does not exportcreate. You must initializenew DefaultArtifactClient()and use the updateduploadArtifactsignature (which now only takes 3 arguments: name, files, and options).@@ -131,5 +131,5 @@* @param {string} filePath - Absolute path of the file to upload* @param {string} [artifactName="screeps-console-log"] - Artifact display name* @returns {Promise<void>}*/export async function uploadLogArtifact(The
@actions/artifactv6 package no longer exports acreatefunction. You should useDefaultArtifactClientinstead:@@ -134,5 +134,5 @@*/export async function uploadLogArtifact(filePath,artifactName = "screeps-console-log",) {The
uploadArtifactmethod signature changed in v4. It no longer acceptsrootDirectoryas a separate positional argument. The new signature is:uploadArtifact(name, files, options)See: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/migration-guide.md
Summary
@actions/artifactv1 to v6 is a major breaking change. Renovate's automated build failed because thecreateexport used inmonitor.jshas been removed in favor of theDefaultArtifactClientclass. Additionally, theuploadArtifactmethod signature has changed significantly.DefaultArtifactClientfrom v6.Detailed migration guide for the author:
@actions/artifactv6 moved to a class-based system.import { create } from "@actions/artifact"withimport { DefaultArtifactClient } from "@actions/artifact".const client = new DefaultArtifactClient().uploadArtifact. In v6, the signature isuploadArtifact(name, files, rootDirectory, options). Note that it returns an object containing anidandsizenow.I am requesting changes because the current state prevents the action from being built or executed.
@@ -204,5 +204,5 @@if (allStdout.length > 0) {if (logToFile) {stdoutBuffer.push(...allStdout);} else {allStdout.forEach((l) => outputMultiline(l, "info"));This
create()function no longer exists in@actions/artifactv6.Based on the v2+ migration guide (which corresponds to the package versioning used here), you should use:
@@ -206,5 +206,5 @@stdoutBuffer.push(...allStdout);} else {allStdout.forEach((l) => outputMultiline(l, "info"));}}The
uploadArtifactmethod signature and behavior changed. In v6, it is part of theDefaultArtifactClientclass.The parameters are:
uploadArtifact(name: string, files: string[], rootDirectory: string, options?: UploadOptions)Ensure
rootDirectoryis the absolute path that should be used as the base for the files in the artifact.Renovate Ignore Notification
Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future
6.xreleases. But if you manually upgrade to6.xthen Renovate will re-enableminorandpatchupdates automatically.If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.
Pull request closed