1
0
Fork 0

minor fixes

pull/1591/head
Rob Herley 2023-12-01 09:05:46 -05:00
parent 57db7a6302
commit a59f976dd4
No known key found for this signature in database
GPG Key ID: D1602042C3543B06
2 changed files with 5 additions and 3 deletions

View File

@ -125,7 +125,7 @@ If the error persists, please check whether Actions is operating normally at [ht
*/
async downloadArtifact(
artifactId: number,
options?: Partial<DownloadArtifactOptions & FindOptions>
options?: DownloadArtifactOptions & FindOptions
): Promise<DownloadArtifactResponse> {
if (isGhes()) {
warning(
@ -152,7 +152,7 @@ If the error persists, please check whether Actions is operating normally at [ht
)
}
return downloadArtifactInternal(artifactId)
return downloadArtifactInternal(artifactId, options)
} catch (error) {
warning(
`Artifact download failed with error: ${error}.

View File

@ -12,6 +12,7 @@ import {getGitHubWorkspaceDir} from '../shared/config'
import {internalArtifactTwirpClient} from '../shared/artifact-twirp-client'
import {
GetSignedArtifactURLRequest,
Int64Value,
ListArtifactsRequest
} from '../../generated'
import {getBackendIdsFromToken} from '../shared/util'
@ -110,7 +111,8 @@ export async function downloadArtifactInternal(
const listReq: ListArtifactsRequest = {
workflowRunBackendId,
workflowJobRunBackendId
workflowJobRunBackendId,
idFilter: Int64Value.create({value: artifactId.toString()})
}
const {artifacts} = await artifactClient.ListArtifacts(listReq)