fix unable to cancel deployment due to cancel token nil

This commit is contained in:
yimysty
2022-06-08 11:47:06 -07:00
parent 148e2ea9dd
commit fce105b3ea
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@@ -7481,7 +7481,7 @@ async function cancelHandler(evtOrExitCodeOrError) {
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
Authorization: `Bearer ${deployment.githubToken}`,
'Content-type': 'application/json'
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -24,7 +24,7 @@ async function cancelHandler(evtOrExitCodeOrError) {
{
headers: {
Accept: 'application/vnd.github.v3+json',
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
Authorization: `Bearer ${deployment.githubToken}`,
'Content-type': 'application/json'
}
}