1
0
Fork 0
pull/1487/head
Bethany 2023-08-09 11:34:18 -07:00
parent 73ad88882e
commit e8fb71c4bb
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import {getRetentionDays, getRuntimeToken} from './config'
import {getRuntimeToken} from './config'
import jwt_decode from 'jwt-decode'
import {Timestamp} from 'src/generated'

View File

@ -60,7 +60,7 @@ export async function uploadArtifact(
const createArtifactReq: CreateArtifactRequest = {
workflowRunBackendId: backendIds.workflowRunBackendId,
workflowJobRunBackendId: backendIds.workflowJobRunBackendId,
name: name,
name,
version: 4
}
@ -69,7 +69,7 @@ export async function uploadArtifact(
if (expiresAt) {
createArtifactReq.expiresAt = expiresAt
}
const createArtifactResp = await createArtifact(() =>
const createArtifactResp = await createArtifact(async () =>
artifactClient.CreateArtifact(createArtifactReq)
)
if (!createArtifactResp || !createArtifactResp.ok) {
@ -82,11 +82,11 @@ export async function uploadArtifact(
// TODO - Implement upload functionality
// finalize the artifact
const finalizeArtifactResp = await finalizeArtifact(() =>
const finalizeArtifactResp = await finalizeArtifact(async () =>
artifactClient.FinalizeArtifact({
workflowRunBackendId: backendIds.workflowRunBackendId,
workflowJobRunBackendId: backendIds.workflowJobRunBackendId,
name: name,
name,
size: '0' // TODO - Add size
})
)