Actions & PR Template verbessern #223

Merged
flixcoo merged 42 commits from setup/222-actions-&-pr-template-verbessern into development 2026-05-22 19:13:00 +00:00
Showing only changes of commit c01fdfbb69 - Show all commits

View File

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