get version from file
#!/usr/bin/env bash
set -e -u -o pipefail
-CURRENT_VERSION=0.0.21
NEXT_VERSION=0.0.22
DEV_NAME='dev1'
+
if [[ -n "${DEBUG-}" ]]; then
set -x
fi
cd "$(dirname "$0")/../"
+CURRENT_VERSION=`sed -n 's/current_version:\s*//p' _config.yml`
python3 bin/freezeAtVersion.py --version ${CURRENT_VERSION}
sed -i 's/\(current_version:\).*/\1 '"${NEXT_VERSION}"'/' _config.yml
sed -i '1i- title: '"${CURRENT_VERSION}" _data/previous_versions.yml
