-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove localization feature flag and improve CI workflow (#10208)
- Loading branch information
1 parent
f2da915
commit 1090fb8
Showing
9 changed files
with
46 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,8 +80,37 @@ jobs: | |
github_base_url: 'github.com' | ||
github_user_name: 'Crowdin Bot' | ||
github_user_email: '[email protected]' | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
CROWDIN_PROJECT_ID: '1' | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | ||
|
||
- name: Compile translations | ||
if: inputs.force_pull || steps.compile_translations.outcome == 'failure' | ||
run: | | ||
npx nx run twenty-server:lingui:compile | ||
npx nx run twenty-emails:lingui:compile | ||
npx nx run twenty-front:lingui:compile | ||
- name: Check and commit compiled files | ||
id: check_changes | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git add . | ||
if ! git diff --staged --quiet --exit-code; then | ||
git commit -m "chore: compile translations [skip ci]" | ||
echo "changes_detected=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "changes_detected=false" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Push changes | ||
if: steps.check_changes.outputs.changes_detected == 'true' | ||
run: git push origin HEAD:i18n | ||
|
||
- name: Create pull request | ||
if: steps.check_changes.outputs.changes_detected == 'true' | ||
run: gh pr create -B main -H i18n --title 'i18n - translations' --body 'Created by Github action' || true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters