Skip to content

Commit acc5b77

Browse files
committed
fix: trigger release workflow
1 parent 9294d5e commit acc5b77

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
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: 7 additions & 4 deletions
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
@@ -82,9 +84,10 @@ jobs:
8284
run: |
8385
git push origin main
8486
echo "Successfully synced dev to main"
85-
86-
- name: Trigger release workflow
87-
if: steps.merge.outputs.merge_success == 'true'
88-
uses: ./.github/workflows/release.yml
87+
88+
call-release:
89+
needs: sync-branches
90+
if: needs.sync-branches.outputs.merge_success == 'true'
91+
uses: ./.github/workflows/release.yml
8992

9093

0 commit comments

Comments
 (0)