- **Finds**: Latest stable release (no suffix)
#### Beta Channel
-- **Pattern**: `^[0-9]+\.[0-9]+\.[0-9]+\.b[0-9]+$` (e.g., `2.1.0.b1`, `2.1.0.b2`)
+- **Pattern**: `^[0-9]+\.[0-9]+\.[0-9]+b[0-9]+$` (e.g., `2.1.0b1`, `2.1.0b2`)
- **Branch**: `dev`
-- **Finds**: Latest beta release (`.bN` suffix)
+- **Finds**: Latest beta release (`bN` suffix)
#### Nightly Channel
- **Pattern**: `^[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+$` (e.g., `2.1.0.dev20251023`)
- Include **only commits since the last beta release**
- **Do NOT include** nightly commits
- **Do NOT include** stable commits from stable branch
-- Example: `2.1.0.b2` → `2.1.0.b3` only shows dev branch commits since b2
+- Example: `2.1.0b2` → `2.1.0b3` only shows dev branch commits since b2
#### ✅ Nightly Release Notes
- Include **only commits since the last nightly release**
```markdown
## 📦 Beta Release
-_Changes since [2.1.0.b1](https://github.com/music-assistant/server/releases/tag/2.1.0.b1)_
+_Changes since [2.1.0b1](https://github.com/music-assistant/server/releases/tag/2.1.0b1)_
### ⚠ Breaking Changes
workflow_dispatch:
inputs:
version:
- description: "Version number (e.g., 1.2.3, 1.2.3.b1, or 1.2.3.dev1)"
+ description: "Version number (e.g., 1.2.3, 1.2.3b1, or 1.2.3.dev1)"
required: true
type: string
channel:
workflow_call:
inputs:
version:
- description: "Version number (e.g., 1.2.3, 1.2.3.b1, or 1.2.3.dev1)"
+ description: "Version number (e.g., 1.2.3, 1.2.3b1, or 1.2.3.dev1)"
required: true
type: string
channel:
# Regex patterns for each channel
STABLE_PATTERN='^[0-9]+\.[0-9]+\.[0-9]+$'
- BETA_PATTERN='^[0-9]+\.[0-9]+\.[0-9]+\.b[0-9]+$'
+ BETA_PATTERN='^[0-9]+\.[0-9]+\.[0-9]+b[0-9]+$'
NIGHTLY_PATTERN='^[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+$'
# Validate version format matches channel
;;
beta)
if ! [[ "$VERSION" =~ $BETA_PATTERN ]]; then
- echo "Error: Beta channel requires version format: X.Y.Z.bN (e.g., 1.2.3.b1)"
+ echo "Error: Beta channel requires version format: X.Y.ZbN (e.g., 1.2.3b1)"
exit 1
fi
echo "is_prerelease=true" >> $GITHUB_OUTPUT
PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
;;
beta)
- PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.b[0-9]+$' | head -n 1)
+ PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+b[0-9]+$' | head -n 1)
;;
nightly)
PREV_TAG=$(git tag --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.dev[0-9]+$' | head -n 1)