feat: use now official metadata

This commit is contained in:
Minsu Lee
2019-10-17 00:43:57 +09:00
parent 3876140984
commit 25e3422b5a

View File

@@ -38,7 +38,7 @@ async function run () {
},
} = await zeitAPIClient.get('/v4/now/deployments', {
params: {
'meta-commit': context.sha,
'meta-githubCommitSha': context.sha,
},
})
@@ -52,7 +52,7 @@ async function run () {
},
} = await zeitAPIClient.get('/v4/now/deployments', {
params: {
'meta-branch': context.ref,
'meta-githubCommitRef': context.ref,
},
})
@@ -96,6 +96,7 @@ async function run () {
body: commentBody,
})
}
core.setOutput('preview-url', `https://${deploymentUrl}`)
}