mirror of
https://github.com/actions/deploy-pages.git
synced 2026-02-12 05:11:25 +00:00
adjust pages hard code endpoint + fix artifact look up
This commit is contained in:
@@ -17,7 +17,7 @@ const deployment = new Deployment()
|
||||
async function cancelHandler(evtOrExitCodeOrError) {
|
||||
try {
|
||||
if (deployment.requestedDeployment) {
|
||||
const pagesCancelDeployEndpoint = `https://api.github.com/repos/${process.env.GITHUB_REPOSITORY}/pages/deployment/cancel/${process.env.GITHUB_SHA}`
|
||||
const pagesCancelDeployEndpoint = `${deployment.githubApiUrl}/repos/${process.env.GITHUB_REPOSITORY}/pages/deployment/cancel/${process.env.GITHUB_SHA}`
|
||||
await axios.put(
|
||||
pagesCancelDeployEndpoint,
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user