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