Skip to content

Commit

Permalink
Check that we upgraded galaxy.yml to next version
Browse files Browse the repository at this point in the history
This is only intented to check for human error. The version in galaxy
should be the next (which does not mean the same if we're on master or a
release branch).
  • Loading branch information
VannTen committed Dec 19, 2023
1 parent 10b05ca commit 45e32ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/scripts/check_galaxy_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ set -e

version_from_galaxy=$(grep "^version:" galaxy.yml | awk '{print $2}')

if [[ $KUBESPRAY_VERSION != "v${version_from_galaxy}" ]]
# TODO: compute the next expected version somehow
if [[ $KUBESPRAY_VERSION == "v${version_from_galaxy}" ]]
then
echo "Please update galaxy.yml version to match the KUBESPRAY_VERSION. Be sure to remove the \"v\" to adhere"
echo "to semenatic versioning"
echo "Please update galaxy.yml version to match the next KUBESPRAY_VERSION."
echo "Be sure to remove the \"v\" to adhere to semantic versioning"
exit 1
fi

0 comments on commit 45e32ed

Please sign in to comment.