Skip to content

Commit e62212d

Browse files
committed
chore: add stable branch-name input var
1 parent ed0e805 commit e62212d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/stable-sync.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
- mobile
1616
- extension
1717
default: 'mobile'
18+
stable-branch-name:
19+
required: false
20+
type: string
21+
description: 'The name of the stable branch to sync to (e.g., stable, master, main)'
22+
default: 'stable'
1823
workflow_call:
1924
inputs:
2025
semver-version:
@@ -26,6 +31,11 @@ on:
2631
type: string
2732
description: 'Type of repository (mobile or extension)'
2833
default: 'mobile'
34+
stable-branch-name:
35+
required: false
36+
type: string
37+
description: 'The name of the stable branch to sync to (e.g., stable, master, main)'
38+
default: 'stable'
2939

3040
jobs:
3141
stable-sync:
@@ -81,6 +91,7 @@ jobs:
8191
env:
8292
CREATE_BRANCH: 'false' # let the script handle the branch creation
8393
REPO: ${{ inputs.repo-type }} # Default to 'mobile' if not specified
94+
BASE_BRANCH: ${{ inputs.stable-branch-name }}
8495
run: |
8596
node .github/scripts/stable-sync.js "stable-main-${{ inputs.semver-version }}"
8697
# Check if branch exists remotely

0 commit comments

Comments
 (0)