pulumi/.github/scripts/get-version

14 lines
289 B
Plaintext
Raw Normal View History

2022-09-02 05:40:13 +00:00
#!/usr/bin/env bash
set -euo pipefail
ROOT=$(dirname "${0}")/../..
if [ -n "${CI:-""}" ]; then
>&2 echo "::group::Get version"
trap ">&2 echo '::endgroup::'" EXIT # bash equivalent of defer func()
fi
2022-09-02 05:40:13 +00:00
# Remove whitespace, this is our version:
tr -d '[:space:]' < "${ROOT}/.version"