From 08d6314f7c6f9a5d7f452780a88d73214e728ad6 Mon Sep 17 00:00:00 2001 From: Bethany Date: Wed, 9 Aug 2023 12:09:17 -0700 Subject: [PATCH] prettier --- packages/artifact/src/internal/shared/util.ts | 4 +++- .../src/internal/upload/upload-artifact.ts | 18 +++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/artifact/src/internal/shared/util.ts b/packages/artifact/src/internal/shared/util.ts index 62849eb5..0b9dfd4b 100644 --- a/packages/artifact/src/internal/shared/util.ts +++ b/packages/artifact/src/internal/shared/util.ts @@ -11,7 +11,9 @@ interface ActionsToken { scp: string } -const InvalidJwtError = new Error('Failed to get backend IDs: The provided JWT token is invalid') +const InvalidJwtError = new Error( + 'Failed to get backend IDs: The provided JWT token is invalid' +) // uses the JWT token claims to get the // workflow run and workflow job run backend ids diff --git a/packages/artifact/src/internal/upload/upload-artifact.ts b/packages/artifact/src/internal/upload/upload-artifact.ts index 2d3d3333..8ad52390 100644 --- a/packages/artifact/src/internal/upload/upload-artifact.ts +++ b/packages/artifact/src/internal/upload/upload-artifact.ts @@ -57,7 +57,9 @@ export async function uploadArtifact( createArtifactReq.expiresAt = expiresAt } - const createArtifactResp = await artifactClient.CreateArtifact(createArtifactReq) + const createArtifactResp = await artifactClient.CreateArtifact( + createArtifactReq + ) if (!createArtifactResp.ok) { core.warning(`Failed to create artifact`) return { @@ -68,14 +70,12 @@ export async function uploadArtifact( // TODO - Implement upload functionality // finalize the artifact - const finalizeArtifactResp = await artifactClient.FinalizeArtifact( - { - workflowRunBackendId: backendIds.workflowRunBackendId, - workflowJobRunBackendId: backendIds.workflowJobRunBackendId, - name, - size: '0' // TODO - Add size - } - ) + const finalizeArtifactResp = await artifactClient.FinalizeArtifact({ + workflowRunBackendId: backendIds.workflowRunBackendId, + workflowJobRunBackendId: backendIds.workflowJobRunBackendId, + name, + size: '0' // TODO - Add size + }) if (!finalizeArtifactResp.ok) { core.warning(`Failed to finalize artifact`) return {