Commit Graph

6 Commits

Author SHA1 Message Date
Achintha Isuru
45c6deb8a3 fix(ci): remove heredoc to resolve YAML syntax error on line 169
Replaced heredoc with direct echo statements to avoid YAML parsing issues.
2026-03-05 15:43:24 -05:00
Achintha Isuru
7a185d6402 fix(ci): resolve YAML syntax error on line 168 in hotfix workflow
Replaced multiline YAML string with heredoc approach to avoid quoting issues.
2026-03-05 15:41:54 -05:00
Achintha Isuru
ac8891c43c fix(ci): fix YAML syntax error in hotfix-branch-creation workflow
Fixed line 168 syntax error caused by sed command with backslash continuation.

Replaced:

  sed -i "1 a\\\

  \\

  $HOTFIX_ENTRY" "$CHANGELOG_PATH"

With simpler approach:

  - Extract title line

  - Extract body

  - Reconstruct file with hotfix entry inserted

This avoids YAML parsing issues with backslash escaping.
2026-03-05 15:38:14 -05:00
Achintha Isuru
8aa29b3149 fix: rename workflow to clarify purpose as Hotfix Branch Creation 2026-03-05 12:35:59 -05:00
Achintha Isuru
39f0d9d53c 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
2026-03-05 12:11:45 -05:00
Achintha Isuru
4ec1b2ca26 refactor(ci): enhance hotfix workflow and rename workflow files
🔄 Hotfix Workflow Enhancements:
- Accept tags from any environment (dev/stage/prod), not just production
- Changed input parameter: 'production_tag' → 'tag'
- Updated validation to show all available tags (not just prod)
- Made terminology more generic throughout
- Show 20 most recent tags instead of 10 for better visibility

📝 File Renames:
- .github/workflows/mobile-hotfix.yml → hotfix-branch-creation.yml
- .github/workflows/mobile-release.yml → product-release.yml

Benefits:
 Hotfix workflow now works with dev/stage/prod tags
 More flexible for various hotfix scenarios
 Clearer, more descriptive workflow file names
 Consistent with product-agnostic terminology
2026-03-05 12:07:32 -05:00