2023-03-27 17:25:55 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
version_from_galaxy=$(grep "^version:" galaxy.yml | awk '{print $2}')
|
|
|
|
|
2024-01-11 22:49:31 +08:00
|
|
|
# TODO: compute the next expected version somehow
|
|
|
|
if [[ $KUBESPRAY_VERSION == "v${version_from_galaxy}" ]]
|
2023-03-27 17:25:55 +08:00
|
|
|
then
|
2024-01-11 22:49:31 +08:00
|
|
|
echo "Please update galaxy.yml version to match the next KUBESPRAY_VERSION."
|
|
|
|
echo "Be sure to remove the \"v\" to adhere to semantic versioning"
|
2023-03-27 17:25:55 +08:00
|
|
|
exit 1
|
|
|
|
fi
|