mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-30 10:04:53 +00:00
Tweak verbosity levels
This commit is contained in:
@@ -19,7 +19,7 @@ async function getSignedArtifactUrl({ runtimeToken, workflowRunId, artifactName
|
|||||||
})
|
})
|
||||||
|
|
||||||
data = response?.result
|
data = response?.result
|
||||||
core.info(JSON.stringify(data))
|
core.debug(JSON.stringify(data))
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.error('Getting signed artifact URL failed', error)
|
core.error('Getting signed artifact URL failed', error)
|
||||||
throw error
|
throw error
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ class Deployment {
|
|||||||
// by creating a deployment with that artifact
|
// by creating a deployment with that artifact
|
||||||
async create(idToken) {
|
async create(idToken) {
|
||||||
try {
|
try {
|
||||||
core.info(`Actor: ${this.buildActor}`)
|
core.debug(`Actor: ${this.buildActor}`)
|
||||||
core.info(`Action ID: ${this.actionsId}`)
|
core.debug(`Action ID: ${this.actionsId}`)
|
||||||
core.info(`Actions Workflow Run ID: ${this.workflowRun}`)
|
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
||||||
|
|
||||||
const artifactUrl = await getSignedArtifactUrl({
|
const artifactUrl = await getSignedArtifactUrl({
|
||||||
runtimeToken: this.runTimeToken,
|
runtimeToken: this.runTimeToken,
|
||||||
@@ -64,12 +64,12 @@ class Deployment {
|
|||||||
})
|
})
|
||||||
this.deploymentInfo = {
|
this.deploymentInfo = {
|
||||||
...deployment,
|
...deployment,
|
||||||
id: deployment?.['status_url']?.split('/')?.pop() || this.buildVersion,
|
id: deployment?.id || deployment?.['status_url']?.split('/')?.pop() || this.buildVersion,
|
||||||
pending: true
|
pending: true
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`Created deployment for ${this.buildVersion}, ID: ${this.deploymentInfo.id}`)
|
core.info(`Created deployment for ${this.buildVersion}, ID: ${this.deploymentInfo.id}`)
|
||||||
core.info(JSON.stringify(deployment))
|
core.debug(JSON.stringify(deployment))
|
||||||
|
|
||||||
return deployment
|
return deployment
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user