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:
29
.github/workflows/hotfix-branch-creation.yml
vendored
29
.github/workflows/hotfix-branch-creation.yml
vendored
@@ -8,8 +8,8 @@ on:
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- worker
|
||||
- client
|
||||
- worker-mobile-app
|
||||
- client-mobile-app
|
||||
tag:
|
||||
description: '🏷️ Current Tag (e.g., krow-withus-worker-mobile/prod-v0.1.0 or dev/stage)'
|
||||
required: true
|
||||
@@ -78,7 +78,10 @@ jobs:
|
||||
APP="${{ github.event.inputs.app }}"
|
||||
VERSION="${{ steps.hotfix_version.outputs.hotfix_version }}"
|
||||
|
||||
BRANCH_NAME="hotfix/krow-withus-${APP}-mobile-v${VERSION}"
|
||||
# Strip -mobile-app suffix for cleaner branch names
|
||||
APP_CLEAN=$(echo "$APP" | sed 's/-mobile-app$//')
|
||||
|
||||
BRANCH_NAME="hotfix/krow-withus-${APP_CLEAN}-mobile-v${VERSION}"
|
||||
echo "branch_name=${BRANCH_NAME}" >> $GITHUB_OUTPUT
|
||||
echo "🌿 Branch to create: $BRANCH_NAME"
|
||||
|
||||
@@ -115,7 +118,7 @@ jobs:
|
||||
APP="${{ github.event.inputs.app }}"
|
||||
HOTFIX_VERSION="${{ steps.hotfix_version.outputs.hotfix_version }}"
|
||||
|
||||
if [ "$APP" = "worker" ]; then
|
||||
if [ "$APP" = "worker-mobile-app" ]; then
|
||||
PUBSPEC_PATH="apps/mobile/apps/staff/pubspec.yaml"
|
||||
CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md"
|
||||
APP_NAME="Staff Product"
|
||||
@@ -148,7 +151,7 @@ jobs:
|
||||
HOTFIX_VERSION="${{ steps.hotfix_version.outputs.hotfix_version }}"
|
||||
ISSUE="${{ github.event.inputs.issue_description }}"
|
||||
|
||||
if [ "$APP" = "worker" ]; then
|
||||
if [ "$APP" = "worker-mobile-app" ]; then
|
||||
CHANGELOG_PATH="apps/mobile/apps/staff/CHANGELOG.md"
|
||||
APP_NAME="Staff Product"
|
||||
else
|
||||
@@ -215,7 +218,10 @@ From tag: ${{ github.event.inputs.tag }}"
|
||||
ISSUE="${{ github.event.inputs.issue_description }}"
|
||||
APP="${{ github.event.inputs.app }}"
|
||||
|
||||
if [ "$APP" = "worker" ]; then
|
||||
# Strip -mobile-app suffix for cleaner tag names
|
||||
APP_CLEAN=$(echo "$APP" | sed 's/-mobile-app$//')
|
||||
|
||||
if [ "$APP" = "worker-mobile-app" ]; then
|
||||
APP_DISPLAY="Worker Product"
|
||||
else
|
||||
APP_DISPLAY="Client Product"
|
||||
@@ -264,8 +270,8 @@ git push origin $BRANCH
|
||||
# Tag and release
|
||||
git checkout main
|
||||
git pull origin main
|
||||
git tag -a krow-withus-${APP}-mobile/prod-v${HOTFIX_VERSION} -m \"HOTFIX: ${ISSUE}\"
|
||||
git push origin krow-withus-${APP}-mobile/prod-v${HOTFIX_VERSION}
|
||||
git tag -a krow-withus-${APP_CLEAN}-mobile/prod-v${HOTFIX_VERSION} -m \"HOTFIX: ${ISSUE}\"
|
||||
git push origin krow-withus-${APP_CLEAN}-mobile/prod-v${HOTFIX_VERSION}
|
||||
\`\`\`
|
||||
|
||||
---
|
||||
@@ -285,6 +291,9 @@ git push origin krow-withus-${APP}-mobile/prod-v${HOTFIX_VERSION}
|
||||
|
||||
- name: 📊 Hotfix Summary
|
||||
run: |
|
||||
# Strip -mobile-app suffix for cleaner tag names
|
||||
APP_CLEAN=$(echo "${{ github.event.inputs.app }}" | sed 's/-mobile-app$//')
|
||||
|
||||
echo "## 🚨 Hotfix Branch Created" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
echo "**App:** ${{ github.event.inputs.app }}" >> $GITHUB_STEP_SUMMARY
|
||||
@@ -312,8 +321,8 @@ git push origin krow-withus-${APP}-mobile/prod-v${HOTFIX_VERSION}
|
||||
echo " \`\`\`bash" >> $GITHUB_STEP_SUMMARY
|
||||
echo " git checkout main" >> $GITHUB_STEP_SUMMARY
|
||||
echo " git pull origin main" >> $GITHUB_STEP_SUMMARY
|
||||
echo " git tag -a krow-withus-${{ github.event.inputs.app }}-mobile/prod-v${{ steps.hotfix_version.outputs.hotfix_version }} -m \"HOTFIX: ${{ github.event.inputs.issue_description }}\"" >> $GITHUB_STEP_SUMMARY
|
||||
echo " git push origin krow-withus-${{ github.event.inputs.app }}-mobile/prod-v${{ steps.hotfix_version.outputs.hotfix_version }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo " git tag -a krow-withus-${APP_CLEAN}-mobile/prod-v${{ steps.hotfix_version.outputs.hotfix_version }} -m \"HOTFIX: ${{ github.event.inputs.issue_description }}\"" >> $GITHUB_STEP_SUMMARY
|
||||
echo " git push origin krow-withus-${APP_CLEAN}-mobile/prod-v${{ steps.hotfix_version.outputs.hotfix_version }}" >> $GITHUB_STEP_SUMMARY
|
||||
echo " \`\`\`" >> $GITHUB_STEP_SUMMARY
|
||||
echo "" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user