Get content
This commit is contained in:
parent
5c4a5ec6db
commit
83bf7df765
1 changed files with 2 additions and 2 deletions
4
.github/actions/changelog/src/index.ts
vendored
4
.github/actions/changelog/src/index.ts
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue