update-stable-branches.sh 478 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  3. # For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. set -e
  5. read -p "Are you sure? " -n 1 -r
  6. echo ""
  7. if [[ $REPLY =~ ^[Yy]$ ]]
  8. then
  9. # Update the `stable` branch in the `ckeditor5` repository.
  10. git checkout stable && git merge master && git checkout master
  11. # Push the `#stable` branch.
  12. git push origin stable master
  13. echo "Success! 🎂"
  14. fi