The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
I18n CI (#10129)
Félix Malfait05403ae247f5
diff --git a/.github/workflows/i18n-push.yaml b/.github/workflows/i18n-push.yamlindex 00c81460439..69b251c3e3d 100644--- a/.github/workflows/i18n-push.yaml+++ b/.github/workflows/i18n-push.yaml@@ -21,13 +21,16 @@ jobs:uses: actions/checkout@v4with:token: ${{ github.token }}- ref: i18n+ ref: main- - name: Merge main into i18n+ - name: Setup i18n branchrun: |- git fetch origin main- git checkout i18n- git merge origin/main+ if ! git ls-remote --heads origin i18n | grep i18n; then+ git checkout -b i18n+ else+ git checkout i18n+ git merge origin/main+ fi- name: Install dependenciesuses: ./.github/workflows/actions/yarn-install@@ -49,12 +52,15 @@ jobs:git add .if ! git diff --staged --quiet --exit-code; thengit commit -m "chore: extract translations"- git push origin HEAD:i18necho "changes_detected=true" >> $GITHUB_OUTPUTelseecho "changes_detected=false" >> $GITHUB_OUTPUTfi+ - name: Push changes and create remote branch if needed+ if: steps.check_changes.outputs.changes_detected == 'true'+ run: git push origin HEAD:i18n+- name: Upload missing translationsif: steps.check_changes.outputs.changes_detected == 'true'uses: crowdin/github-action@v2