Skip to content

Commit 2dc63af

Browse files
committed
feat: trigger release workflow
1 parent a8bb854 commit 2dc63af

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Release
22

33
on:
4+
workflow_call:
5+
inputs:
6+
locales:
7+
description: 'Comma-separated list of locales to deploy (e.g., en,zh-hans). Leave empty to deploy all enabled locales.'
8+
required: false
9+
type: string
410
workflow_dispatch:
511
inputs:
612
locales:

.github/workflows/sync-dev-to-main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
sync-branches:
1313
runs-on: ubuntu-latest
14+
outputs:
15+
merge_success: ${{ steps.merge.outputs.merge_success }}
1416

1517
steps:
1618
- name: Checkout repository
@@ -81,4 +83,11 @@ jobs:
8183
if: steps.merge.outputs.merge_success == 'true'
8284
run: |
8385
git push origin main
84-
echo "Successfully synced dev to main"
86+
echo "Successfully synced dev to main"
87+
88+
call-release:
89+
needs: sync-branches
90+
if: needs.sync-branches.outputs.merge_success == 'true'
91+
uses: ./.github/workflows/release.yml
92+
93+

0 commit comments

Comments
 (0)