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
|
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
|
id: generate_localizations
|
||||||
continue-on-error: true
|
run: |
|
||||||
run: flutter gen-l10n --no-use-deferred-loading
|
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
|
- name: Commit generated localizations
|
||||||
if: steps.generate_localizations.outcome == 'failure'
|
if: steps.generate_localizations.outputs.has_changes == 'true'
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user