1
0
Fork 0
pull/1503/head
Bethany 2023-08-23 07:28:17 -07:00
parent b4f8e602b2
commit 88f749f686
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,3 @@
import path from 'path'
import fs from 'fs/promises'
import * as github from '@actions/github'
import * as core from '@actions/core'
@ -55,7 +54,7 @@ export async function downloadArtifact(
token: string,
options?: DownloadArtifactOptions
): Promise<DownloadArtifactResponse> {
let downloadPath = options?.path || getGitHubWorkspaceDir()
const downloadPath = options?.path || getGitHubWorkspaceDir()
if (!(await exists(downloadPath))) {
core.debug(

View File

@ -97,7 +97,7 @@ export async function uploadArtifact(
workflowRunBackendId: backendIds.workflowRunBackendId,
workflowJobRunBackendId: backendIds.workflowJobRunBackendId,
name,
size: uploadResult.uploadSize!.toString()
size: uploadResult.uploadSize ? uploadResult.uploadSize.toString() : '0'
}
if (uploadResult.md5Hash) {