1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-15 01:27:18 +00:00
test-tutorial-framework/hack/libhack/common.sh
2019-09-30 15:08:04 +02:00

23 lines
446 B
Bash

pushd() {
command pushd "$@" > /dev/null
}
popd() {
command popd "$@" > /dev/null
}
releasename() {
local version
local date
version="$(cat VERSION | head -n 1)"
date="$(date +%Y%m%d)"
printf "${version}-${date}"
}
force_push_tag() {
git tag -d "${tag}" > /dev/null 2>&1 || :
git push --delete origin "${tag}" > /dev/null 2>&1 || :
git tag -s -m "${description}" "${tag}"
git push origin "${tag}"
}