Skip to content

Commit 0745e97

Browse files
authored
Merge pull request #38 from actions/fix-cancell-token
Fix cancel deployment token is empty
2 parents 148e2ea + 43dced9 commit 0745e97

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function cancelHandler(evtOrExitCodeOrError) {
2424
{
2525
headers: {
2626
Accept: 'application/vnd.github.v3+json',
27-
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
27+
Authorization: `Bearer ${deployment.githubToken}`,
2828
'Content-type': 'application/json'
2929
}
3030
}

0 commit comments

Comments
 (0)