mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-04-28 20:15:31 +08:00
feat: use now official metadata
This commit is contained in:
5
index.js
5
index.js
@@ -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}`)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user