ci: Run nuke in correct steps

This commit is contained in:
Pun Butrach 2024-08-27 21:11:52 +07:00 committed by GitHub
parent 61251deffa
commit 5d612fe790
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,16 +47,19 @@ jobs:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
# There has to be a better way to do this
- name: Normalization of Translation Strings
run: |
dart pub get
cd assets/i18n
sudo chmod 766 *.json
dart nuke.dart >> $GITHUB_STEP_SUMMARY
cd ../..
dart run slang analyze
dart run slang clean
dart run slang normalize
cd assets/i18n
dart nuke.dart >> $GITHUB_STEP_SUMMARY
cd ../..
dart run slang
flutter analyze lib/gen/strings.g.dart --no-fatal-infos --no-fatal-warnings