test gen l10n

This commit is contained in:
2026-05-22 15:43:30 +02:00
parent be7da318c8
commit 9aaf962846

View File

@@ -142,21 +142,22 @@ jobs:
env: env:
GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} GITEA_TOKEN: ${{ secrets.BOT_TOKEN }}
run: | run: |
# git fetch origin ${{ gitea.ref_name }}
git fetch origin ${{ gitea.head_ref }} git fetch origin ${{ gitea.head_ref }}
# git checkout ${{ gitea.ref_name }}
git checkout ${{ gitea.head_ref }} 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.ref_name }}
git pull origin ${{ gitea.head_ref }} git pull origin ${{ gitea.head_ref }}
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.ref_name }}
git push origin HEAD:${{ gitea.head_ref }} git push origin HEAD:${{ gitea.head_ref }}
else else
echo "No changes to commit" echo "No changes to commit"
fi fi
# git fetch origin ${{ gitea.ref_name }}
# git checkout ${{ gitea.ref_name }}
# git pull origin ${{ gitea.ref_name }}
# git push origin HEAD:${{ gitea.ref_name }}