Merge pull request #41 from justin-elias/fixes

fix: fail action on push rejection
releases/v3
Tycho Bokdam 2020-07-27 08:10:28 +02:00 committed by GitHub
commit 16f3145f28
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')
try{
await git.push() 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)