mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
bc8a84e9e4
Everything succeeds, but because [ -z ${CI_COMMIT_TAG} ] on the last line returns non-zero, it fails the job.
15 lines
289 B
Bash
Executable File
15 lines
289 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 github "${CI_COMMIT_TAG}"
|
|
else
|
|
# for branches
|
|
git push github "${CI_COMMIT_SHA}:refs/heads/${CI_COMMIT_REF_NAME}"
|
|
fi
|
|
|