From b6e28c0b4b7c3425924f18a17daa57962b0606a3 Mon Sep 17 00:00:00 2001 From: robinv8 Date: Thu, 22 Oct 2026 15:42:03 +0800 Subject: [PATCH] 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 1bd3da603..2b2fa9f9a 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 aa36cc4ca..5a5abfc6a 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%.*}