Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Bulash committed Feb 3, 2022
1 parent f91c85a commit 5336773
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -200,7 +200,7 @@ module.exports = (app, { getRouter }) => {
config,
})
} else {
log({ context, message: 'Updating existing release' })
log({ context, message: 'Updating existing release. Does this even work?' })
createOrUpdateReleaseResponse = await updateRelease({
context,
draftRelease,
Expand Down
7 changes: 7 additions & 0 deletions lib/releases.js
Expand Up @@ -352,6 +352,13 @@ const updateRelease = ({ context, draftRelease, releaseInfo }) => {
tag_name: releaseInfo.tag || draftRelease.tag_name,
})


const { log } = require('./log')
log({
context,
message: `Updating release with: '${releaseInfo.commitish}'`,
})

return context.octokit.repos.updateRelease(
context.repo({
release_id: draftRelease.id,
Expand Down

0 comments on commit 5336773

Please sign in to comment.