Skip to content

Commit

Permalink
fix: trap git push errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 27, 2018
1 parent 507a615 commit af327b3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .circleci/release_example
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ examples.forEach(example => {

sh.exec(`create-dxcli ${type} --force --defaults ${options}`)
sh.exec('git add -A')
sh.exec(`git commit -m "fix: create-dxcli ${version}"`)
sh.exec('git push')
try {
sh.exec(`git commit -m "fix: create-dxcli ${version}"`)
sh.exec('git push')
} catch (err) {
console.error(err)
}
})

0 comments on commit af327b3

Please sign in to comment.