diff --git a/packages/artifact/src/internal/shared/util.ts b/packages/artifact/src/internal/shared/util.ts index 4f378145..1b7ca9e1 100644 --- a/packages/artifact/src/internal/shared/util.ts +++ b/packages/artifact/src/internal/shared/util.ts @@ -1,4 +1,4 @@ -import {getRetentionDays, getRuntimeToken} from './config' +import {getRuntimeToken} from './config' import jwt_decode from 'jwt-decode' import {Timestamp} from 'src/generated' diff --git a/packages/artifact/src/internal/upload/upload-artifact.ts b/packages/artifact/src/internal/upload/upload-artifact.ts index 335936d2..a793ce17 100644 --- a/packages/artifact/src/internal/upload/upload-artifact.ts +++ b/packages/artifact/src/internal/upload/upload-artifact.ts @@ -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 }) )