Tweak verbosity levels

This commit is contained in:
James M. Greene
2023-03-06 22:03:56 -06:00
parent c8c985cff1
commit c981f59b6f
2 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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) {