CI: convert galaxy version check to pre-commit + autodetect

This commit is contained in:
Max Gautier
2025-03-17 18:02:58 +01:00
parent 0c59cc84dd
commit c79b3ce46b
5 changed files with 57 additions and 23 deletions

View File

@@ -1,12 +0,0 @@
#!/bin/bash
set -e
version_from_galaxy=$(grep "^version:" galaxy.yml | awk '{print $2}')
# TODO: compute the next expected version somehow
if [[ $KUBESPRAY_VERSION == "v${version_from_galaxy}" ]]
then
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