You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `@actions/artifact` v2+ does not allow for creating multiple artifacts with the same name in the same workflow run.
73
-
* It is possible to have multiple artifacts with the same name in the same workflow run by using old versions of upload-artifact (v1,v2 and v3), @actions/artifact < v2 or it is a rerun.
74
-
* If there are multiple artifacts with the same name in the same workflow run this function will return the first artifact that matches the name.
70
+
* If there are multiple artifacts with the same name in the same workflow
71
+
* run, this will return the latest. If the artifact is not found, it will
72
+
* throw.
73
+
*
74
+
* If `options.findBy` is specified, this will use the public List Artifacts
75
+
* API with a name filter which can get artifacts from other runs.
75
76
*
76
-
* @param artifactName The name of the artifact to find
77
-
* @param options Extra options that allow for the customization of the get behavior
* If `options.findBy` is specified, this will use the public Download Artifact API https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28#download-an-artifact
89
+
* If `options.findBy` is specified, this will use the public Download
90
+
* Artifact API.
88
91
*
89
-
* @param artifactId The id of the artifact to download
90
-
* @param options Extra options that allow for the customization of the download behavior
91
-
* @returnssingle DownloadArtifactResponse object
92
+
* @param artifactId Artifact ID
93
+
* @param options Download Artifact Options
94
+
* @returnsDownload Artifact Response
92
95
*/
93
96
downloadArtifact(
94
97
artifactId: number,
95
98
options?: DownloadArtifactOptions&FindOptions
96
99
): Promise<DownloadArtifactResponse>
97
100
98
101
/**
99
-
* Delete an Artifact
102
+
* Deletes an artifact.
100
103
*
101
-
* If `options.findBy` is specified, this will use the public Delete Artifact API https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28#delete-an-artifact
104
+
* If `options.findBy` is specified, this will use the public Delete Artifact
105
+
* API
102
106
*
103
-
* @param artifactName The name of the artifact to delete
104
-
* @param options Extra options that allow for the customization of the delete behavior
Copy file name to clipboardExpand all lines: src/stubs/artifact/internal/delete/delete-artifact.ts
+21-4Lines changed: 21 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
/**
2
+
* Last Reviewed Commit: https://github.com/actions/toolkit/blob/930c89072712a3aac52d74b23338f00bb0cfcb24/packages/artifact/src/internal/delete/delete-artifact.ts
0 commit comments