This is an automated email from the ASF dual-hosted git repository.

robinv8 pushed a commit to branch fix/sync-info-workflow
in repository https://gitbox.apache.org/repos/asf/answer-plugins.git

commit b6e28c0b4b7c3425924f18a17daa57962b0606a3
Author: robinv8 <[email protected]>
AuthorDate: Thu Oct 22 15:42:03 2026 +0800

    ci: run sync-info only on dev and keep i18n order stable
---
 .github/workflows/sync-info.yml | 8 +++++++-
 script/sync-info.sh             | 2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/sync-info.yml b/.github/workflows/sync-info.yml
index 1bd3da6..2b2fa9f 100644
--- a/.github/workflows/sync-info.yml
+++ b/.github/workflows/sync-info.yml
@@ -18,7 +18,11 @@
 name: Sync info
 on:
   push:
-    branches: [dev, main]
+    branches: [dev]
+
+concurrency:
+  group: sync-info
+  cancel-in-progress: true
 
 jobs:
   build:
@@ -38,3 +42,5 @@ jobs:
           title: "chore: Sync Plugin Info"
           body: "Sync Plugin Info"
           branch: "chore/sync-info"
+          base: dev
+          delete-branch: true
diff --git a/script/sync-info.sh b/script/sync-info.sh
index aa36cc4..5a5abfc 100755
--- a/script/sync-info.sh
+++ b/script/sync-info.sh
@@ -55,7 +55,7 @@ for plugin in "${plugins[@]}"; do
     fi
 
     if [ -d "$dir/i18n" ]; then
-        for file in $(find "$dir/i18n" -type f -name "*.yaml"); do
+        for file in $(find "$dir/i18n" -type f -name "*.yaml" | LC_ALL=C 
sort); do
             if [ -f "$file" ]; then
                 file_name=$(basename "$file")
                 file_name=${file_name%.*}

Reply via email to