mirror of
https://github.com/m5stack/CoreS3-Box.git
synced 2026-05-20 10:59:43 -07:00
15 lines
305 B
Bash
Executable File
15 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# gitlab-ci script to push current tested revision (tag or branch) to github
|
|
|
|
set -ex
|
|
|
|
if [ -n "${CI_COMMIT_TAG}" ]; then
|
|
# for tags
|
|
git push --force github "${CI_COMMIT_TAG}"
|
|
else
|
|
# for branches
|
|
git push github --force "${CI_COMMIT_SHA}:refs/heads/${CI_COMMIT_REF_NAME}"
|
|
fi
|
|
|