Files
comfyui/scripts/chart-version.sh
T
feedc0de 227e9c97b6
Validate, publish and promote ComfyUI chart / chart (push) Successful in 21s
Create portable ComfyUI Helm chart
2026-10-21 17:10:20 +02:00

13 lines
374 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
description=$(git -C "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" describe --tags --long --match 'v[0-9]*' --dirty)
case "$description" in
*-dirty) echo 'Refusing to package a dirty tree' >&2; exit 1 ;;
esac
version=${description#v}
case "$version" in
*-0-g*) version=${version%%-0-g*} ;;
esac
printf '%s\n' "$version"