fix pipeline
All checks were successful
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) Successful in 26s

This commit is contained in:
2026-05-22 15:45:53 +02:00
parent 9aaf962846
commit c01fdfbb69

View File

@@ -126,7 +126,8 @@ jobs:
git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.41.0-x64 git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.41.0-x64
flutter pub get flutter pub get
- name: Generate localizations
run: flutter gen-l10n --no-use-deferred-loading
- name: Check generated files - name: Check generated files
id: generate_localizations id: generate_localizations
@@ -141,22 +142,26 @@ jobs:
if: steps.generate_localizations.outputs.has_changes == 'true' if: steps.generate_localizations.outputs.has_changes == 'true'
env: env:
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
BRANCH_NAME: ${{ gitea.head_ref }}
run: | run: |
git fetch origin "$BRANCH_NAME"
git fetch origin ${{ gitea.head_ref }} git checkout "$BRANCH_NAME"
git checkout ${{ gitea.head_ref }}
if [ -n "$(git status --porcelain lib test)" ]; then if [ -n "$(git status --porcelain lib test)" ]; then
git config --global user.name "Gitea Actions [bot]" git config --global user.name "Gitea Actions [bot]"
git config --global user.email "actions@yannick-weigert.de" git config --global user.email "actions@yannick-weigert.de"
git config pull.rebase false git config pull.rebase false
git pull origin ${{ gitea.head_ref }} git pull origin "$BRANCH_NAME"
git add lib/l10n git add lib/l10n
git commit -m "Generated localizations [skip ci]" git commit -m "Generated localizations [skip ci]"
git push origin HEAD:${{ gitea.head_ref }} git push origin "HEAD:$BRANCH_NAME"
else else
echo "No changes to commit" echo "No changes to commit"
fi fi
# git fetch origin ${{ gitea.ref_name }} # git fetch origin ${{ gitea.ref_name }}
# git checkout ${{ gitea.ref_name }} # git checkout ${{ gitea.ref_name }}
# git pull origin ${{ gitea.ref_name }} # git pull origin ${{ gitea.ref_name }}