From c981f59b6fd0fc3db2390bb9df9d8405e23f4c4b Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Mon, 6 Mar 2023 22:03:56 -0600 Subject: [PATCH] Tweak verbosity levels --- src/api-client.js | 2 +- src/deployment.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api-client.js b/src/api-client.js index 4d54d19..7b1489e 100644 --- a/src/api-client.js +++ b/src/api-client.js @@ -19,7 +19,7 @@ async function getSignedArtifactUrl({ runtimeToken, workflowRunId, artifactName }) data = response?.result - core.info(JSON.stringify(data)) + core.debug(JSON.stringify(data)) } catch (error) { core.error('Getting signed artifact URL failed', error) throw error diff --git a/src/deployment.js b/src/deployment.js index 0d907fc..abef778 100644 --- a/src/deployment.js +++ b/src/deployment.js @@ -45,9 +45,9 @@ class Deployment { // by creating a deployment with that artifact async create(idToken) { try { - core.info(`Actor: ${this.buildActor}`) - core.info(`Action ID: ${this.actionsId}`) - core.info(`Actions Workflow Run ID: ${this.workflowRun}`) + core.debug(`Actor: ${this.buildActor}`) + core.debug(`Action ID: ${this.actionsId}`) + core.debug(`Actions Workflow Run ID: ${this.workflowRun}`) const artifactUrl = await getSignedArtifactUrl({ runtimeToken: this.runTimeToken, @@ -64,12 +64,12 @@ class Deployment { }) this.deploymentInfo = { ...deployment, - id: deployment?.['status_url']?.split('/')?.pop() || this.buildVersion, + id: deployment?.id || deployment?.['status_url']?.split('/')?.pop() || this.buildVersion, pending: true } core.info(`Created deployment for ${this.buildVersion}, ID: ${this.deploymentInfo.id}`) - core.info(JSON.stringify(deployment)) + core.debug(JSON.stringify(deployment)) return deployment } catch (error) {