From 6e59faada40c51fe1aafb2a5e4fb9603da109c1d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 19 Aug 2024 10:53:21 +0800 Subject: [PATCH] Test update catalogs.json while auto-merging i18n PRs --- .github/workflows/i18n-automerge.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/i18n-automerge.yml b/.github/workflows/i18n-automerge.yml index b1129dc7..7f20b7ea 100644 --- a/.github/workflows/i18n-automerge.yml +++ b/.github/workflows/i18n-automerge.yml @@ -51,6 +51,15 @@ jobs: exit 1 else echo "Success: More than 50 lines have been changed." + node scripts/catalogs.js + if git diff --quiet src/data/catalogs.json; then + echo "No changes to catalogs.json" + else + echo "Changes to catalogs.json" + git add src/data/catalogs.json + git commit -m "Update catalogs.json" + git push + fi fi - name: Merge pull request