Revert "Bump @actions/github from 4.0.0 to 5.0.0 (#306)" (#331)

This reverts commit ad7c38929b.
This commit is contained in:
Simon Lecoq
2021-05-26 21:35:36 +02:00
committed by GitHub
parent 8dafb85497
commit 87b5ed3f5c
3 changed files with 65 additions and 73 deletions

View File

@@ -119,7 +119,7 @@ async function wait(seconds) {
const api = {}
api.graphql = octokit.graphql.defaults({headers:{authorization:`token ${token}`}})
info("Github GraphQL API", "ok")
api.rest = github.getOctokit(token).rest
api.rest = github.getOctokit(token)
info("Github REST API", "ok")
//Apply mocking if needed
if (mocked) {