Get content

This commit is contained in:
Corey Johnson 2019-12-18 09:21:55 -08:00
parent 5c4a5ec6db
commit 83bf7df765

View file

@ -23,8 +23,8 @@ async function getChangelog() {
const repo = github.context.repo.repo
const path = 'changelog.json'
const response = await octokit.repos.getContents({ owner, repo, path })
const data = response.data
core.info('content: ' + JSON.stringify(data))
const content = Buffer.from(response.data.content, 'base64').toString('utf8')
core.info('content: ' + content)
}
function handleError(err: Error) {