refactor(ci): update product options to be more specific
🔄 Changed product option values: - worker → worker-mobile-app - client → client-mobile-app 📝 Updated Files: - .github/workflows/hotfix-branch-creation.yml - .github/workflows/product-release.yml - .github/scripts/extract-version.sh - .github/scripts/extract-release-notes.sh - .github/scripts/create-release-summary.sh - .github/scripts/generate-tag-name.sh 🎯 Key Changes: - Product dropdown options now more specific - All conditional checks updated to use new values - Tag/branch names remain clean (strips -mobile-app suffix) - Tag format unchanged: krow-withus-worker-mobile/prod-v0.1.0 - Branch format unchanged: hotfix/krow-withus-worker-mobile-v0.1.0 Benefits: ✅ Clearer product selection (distinguishes mobile from future web/backend) ✅ Backward compatible tag format ✅ Maintains clean naming conventions
This commit is contained in:
2
.github/scripts/create-release-summary.sh
vendored
2
.github/scripts/create-release-summary.sh
vendored
@@ -16,7 +16,7 @@ if [ -z "$APP" ] || [ -z "$ENV" ] || [ -z "$VERSION" ] || [ -z "$TAG_NAME" ]; th
|
||||
fi
|
||||
|
||||
# Determine display names
|
||||
if [ "$APP" = "worker" ]; then
|
||||
if [ "$APP" = "worker-mobile-app" ]; then
|
||||
APP_DISPLAY="Worker Product"
|
||||
APP_EMOJI="👷"
|
||||
else
|
||||
|
||||
2
.github/scripts/extract-release-notes.sh
vendored
2
.github/scripts/extract-release-notes.sh
vendored
@@ -17,7 +17,7 @@ if [ -z "$APP" ] || [ -z "$VERSION" ] || [ -z "$ENV" ] || [ -z "$TAG_NAME" ] ||
|
||||
fi
|
||||
|
||||
# Determine CHANGELOG path and app name
|
||||
if [ "$APP" = "worker" ]; then
|
||||
if [ "$APP" = "worker-mobile-app" ]; then
|
||||
CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md"
|
||||
APP_NAME="Staff Product (Worker)"
|
||||
else
|
||||
|
||||
6
.github/scripts/extract-version.sh
vendored
6
.github/scripts/extract-version.sh
vendored
@@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
# Extract version from version file for products
|
||||
# Usage: ./extract-version.sh <app>
|
||||
# app: worker or client
|
||||
# app: worker-mobile-app or client-mobile-app
|
||||
|
||||
set -e
|
||||
|
||||
APP=$1
|
||||
|
||||
if [ -z "$APP" ]; then
|
||||
echo "❌ Error: App parameter required (worker or client)"
|
||||
echo "❌ Error: App parameter required (worker-mobile-app or client-mobile-app)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Determine pubspec path
|
||||
if [ "$APP" = "worker" ]; then
|
||||
if [ "$APP" = "worker-mobile-app" ]; then
|
||||
PUBSPEC_PATH="apps/mobile/apps/staff/pubspec.yaml"
|
||||
APP_NAME="Staff Product (Worker)"
|
||||
else
|
||||
|
||||
6
.github/scripts/generate-tag-name.sh
vendored
6
.github/scripts/generate-tag-name.sh
vendored
@@ -14,5 +14,9 @@ if [ -z "$APP" ] || [ -z "$ENV" ] || [ -z "$VERSION" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TAG_NAME="krow-withus-${APP}-mobile/${ENV}-v${VERSION}"
|
||||
# Strip -mobile-app suffix from app name for cleaner tag names
|
||||
# worker-mobile-app -> worker, client-mobile-app -> client
|
||||
APP_TAG=$(echo "$APP" | sed 's/-mobile-app$//')
|
||||
|
||||
TAG_NAME="krow-withus-${APP_TAG}-mobile/${ENV}-v${VERSION}"
|
||||
echo "$TAG_NAME"
|
||||
|
||||
Reference in New Issue
Block a user