push_to_github.sh 296 B

12345678910111213
  1. #!/usr/bin/env bash
  2. # gitlab-ci script to push current tested revision (tag or branch) to github
  3. set -ex
  4. if [ -n "${CI_COMMIT_TAG}" ]; then
  5. # for tags
  6. git push github "${CI_COMMIT_TAG}"
  7. else
  8. # for branches
  9. git push github "${CI_COMMIT_SHA}:refs/heads/${CI_COMMIT_REF_NAME}"
  10. fi