Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .github/actions/github-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,25 +159,9 @@ runs:
draft: false,
prerelease: isPrerelease,
make_latest : !isPrerelease,
discussion_category_name: 'Announcements',
}
)

try {
await state.refreshToken()
console.log('Opening announcement (in Discussions)')
await updateRelease(
console,
state.accessToken,
'${{ inputs.owner }}',
'${{ inputs.repo }}',
release.id, {
discussion_category_name: 'Announcements',
}
)
} catch(e) {
console.log(`::warning::could not create Discussion`)
console.log(e)
}
core.setOutput('token', state.accessToken)
- name: Add a comment about the announcement email to the Pull Request
if: inputs.pull-request-number != ''
Expand Down