From 07c9e6663d6208c339a647b66f53d367010b8159 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Fri, 22 May 2026 16:00:18 +0200 Subject: [PATCH] Fixed pipeline --- .gitea/workflows/pull_request.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/pull_request.yaml b/.gitea/workflows/pull_request.yaml index 73cc434..9e5c6c2 100644 --- a/.gitea/workflows/pull_request.yaml +++ b/.gitea/workflows/pull_request.yaml @@ -126,13 +126,11 @@ jobs: - name: Sort .arb-Files run: | - for file in lib/l10n/intl_*.arb; do - if [ -f "$file" ]; then - echo "Sorting $file" - dart run arb_utils sort $file - exit 1 - fi - done + shopt -s nullglob + for file in lib/l10n/arb/app_*.arb; do + echo "Sorting $file" + dart run arb_utils sort "$file" + done - name: Check for changes id: check_changes @@ -143,7 +141,7 @@ jobs: echo "has_changes=false" >> "$GITHUB_OUTPUT" fi - - name: Commit generated localizations + - name: Commit sorted .arb-Files if: steps.check_changes.outputs.has_changes == 'true' env: GITEA_TOKEN: ${{ secrets.BOT_TOKEN }} @@ -152,13 +150,13 @@ jobs: git fetch origin "$BRANCH_NAME" git checkout "$BRANCH_NAME" - if [ -n "$(git status --porcelain lib test)" ]; then + if [ -n "$(git status --porcelain lib/l10n/arb)" ]; 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 "$BRANCH_NAME" - git add lib/l10n - git commit -m "Generated localizations [skip ci]" + git add lib/l10n/arb + git commit -m "Sort .arb files [skip ci]" git push origin "HEAD:$BRANCH_NAME" else echo "No changes to commit"