fix: fail action on push rejection

releases/v3
Justin Elias 2020-07-26 19:09:30 -06:00 committed by GitHub
parent 5ba044f581
commit 206a4e313a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -116,7 +116,11 @@ async function run() {
await git.createTag(gitTag) await git.createTag(gitTag)
core.info('Push all changes') core.info('Push all changes')
await git.push() try{
await git.push()
}catch (error) {
core.setFailed(error.message)
}
// Set outputs so other actions (for example actions/create-release) can use it // Set outputs so other actions (for example actions/create-release) can use it
core.setOutput('changelog', stringChangelog) core.setOutput('changelog', stringChangelog)