#!/bin/bash

export __VERSION=$(yq -r ".version" galaxy.yml)
if [[ -z "$__VERSION" ]]; then
	echo >&2 "ERROR: Version not found from galaxy.yml!"
	exit 1
fi

echo "Building version: $__VERSION"
ansible-galaxy collection build
