All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 5s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 7s
Build and Publish nightly package / build-and-publish (push) Successful in 16s
- Changes nightly version suffix to use `.dev` format for consistency - Replaces `+nightly` with `.dev` followed by timestamp
15 lines
307 B
Bash
Executable File
15 lines
307 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=".dev$(date +%Y%m%d%H%M)"
|
|
fi
|
|
|
|
FULL_VERSION="${BASE_VERSION}${NIGHTLY_SUFFIX}"
|
|
|
|
echo "Using version: $FULL_VERSION"
|
|
poetry version "$FULL_VERSION"
|