set -e
set -u
set -o pipefail
trap "exit" INT
source ".medic/_support/doctor.sh"
bin/dev/audit
bin/dev/update
bin/dev/test
bin/dev/release
step "Pushing" "git push origin HEAD"
set +e
origin=$(git remote get-url origin 2>&1)
set +e
if [ $? -eq 0 ]; then
origin=$(echo "${origin}" | sed s^:^/^ | sed s^git@^https://^ | sed s^\.git$^^)
cecho --bright-green "\nDone!" --bright-yellow "Check CI at" --bright-bold-white "${origin}/actions"
else
cecho --bright-green "\nDone!"
fi