test gen l10n
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / localizations (pull_request) Has been skipped
Pull Request Pipeline / generate_localizations (pull_request) Failing after 28s
Some checks failed
Pull Request Pipeline / lint (pull_request) Has been skipped
Pull Request Pipeline / test (pull_request) Has been skipped
Pull Request Pipeline / localizations (pull_request) Has been skipped
Pull Request Pipeline / generate_localizations (pull_request) Failing after 28s
This commit is contained in:
@@ -127,16 +127,18 @@ jobs:
|
||||
flutter pub get
|
||||
|
||||
|
||||
- name: Generate localization files
|
||||
run: flutter gen-l10n --no-use-deferred-loading
|
||||
|
||||
- name: Check code format
|
||||
- name: Check generated files
|
||||
id: generate_localizations
|
||||
continue-on-error: true
|
||||
run: flutter gen-l10n --no-use-deferred-loading
|
||||
run: |
|
||||
if [ -n "$(git status --porcelain lib/l10n)" ]; then
|
||||
echo "has_changes=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "has_changes=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Format code
|
||||
if: steps.generate_localizations.outcome == 'failure'
|
||||
- name: Commit generated localizations
|
||||
if: steps.generate_localizations.outputs.has_changes == 'true'
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user