rewrite artifacts client to have public and internal implementations

This commit is contained in:
Rob Herley authored and GitHub committed 2023-11-30 03:47:04 +00:00
1 parent 8fb3c4626b
commit 87a7c03510
10 files changed
+1149 -254

No files matched your search

+13 -5
View File
@@ -120,13 +120,21 @@ export interface Artifact {
*/
id: number
/**
* The URL of the artifact
*/
url: string
/**
* The size of the artifact in bytes
*/
size: number
}
// LookupOptions are for fetching Artifact(s) out of the scope of the current run.
// Must specify a PAT with actions:read scope for cross run/repo lookup otherwise these will be ignored.
export interface LookupOptions {
// Token with actions:read permissions
token: string
// WorkflowRun of the artifact(s) to lookup
workflowRunId: number
// Repository owner
repositoryOwner: string
// Repository name
repositoryName: string
}