Files
repoCat/.gitea/scripts/set_poetry_version.sh
Max P. 078948fda1 feat(ci): add workflows for automated releases and nightly builds
- Add workflows for nightly builds and automated releases using Gitea
- Introduce scripts for version management, release ID retrieval, and
  asset uploads
- Update changelog generation and conflict handling mechanisms
- Improve release automation with semantic versioning support
2025-05-11 14:14:59 +02:00

15 lines
313 B
Bash
Executable File

#!/bin/bash
BASE_VERSION=$(cat VERSION)
NIGHTLY_SUFFIX=""
if [[ "$1" == "nightly" ]]; then
# Beispiel: 20240511.1358 → 11. Mai, 13:58 Uhr
NIGHTLY_SUFFIX="+nightly.$(date +%Y%m%d.%H%M)"
fi
FULL_VERSION="${BASE_VERSION}${NIGHTLY_SUFFIX}"
echo "Using version: $FULL_VERSION"
poetry version "$FULL_VERSION"