From 917da0781464f7189b12a496b39793f7df39df27 Mon Sep 17 00:00:00 2001 From: Yash Pimple Date: Fri, 9 Feb 2024 20:10:58 +0530 Subject: [PATCH] fix: DCO issue Signed-off-by: Yash Pimple --- .github/workflows/translations.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/translations.yaml diff --git a/.github/workflows/translations.yaml b/.github/workflows/translations.yaml new file mode 100644 index 0000000000..eac7746eb0 --- /dev/null +++ b/.github/workflows/translations.yaml @@ -0,0 +1,29 @@ +name: Check Translations + +on: + push: + branches: + - main + +jobs: + check-translations: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Install Dependencies + run: yarn install + + - name: Generate Chinese Translations + run: yarn write-translations --locale zh + + - name: Check for Changes + run: | + if git status --porcelain | grep "i18n/zh"; then + echo "Changes detected in Chinese translations." + else + echo "No changes detected in Chinese translations." + exit 1 + fi