From ca7bf90e8961ca7e78b4aa205956f3a4a0dfa72e Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 24 Oct 2024 11:04:26 +0200 Subject: [PATCH] Be stricter about regenerating reuse.pot Sometimes when `make create-pot` is run, the wrapping in the `.po` files wouldn't exactly match how Weblate does the wrapping. This would trigger a commit. By only checking for the diff in `po/reuse.pot`, we avoid this problem. Signed-off-by: Carmen Bianca BAKKER --- .github/workflows/gettext.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gettext.yaml b/.github/workflows/gettext.yaml index 6465e706f..1973c4aba 100644 --- a/.github/workflows/gettext.yaml +++ b/.github/workflows/gettext.yaml @@ -43,8 +43,8 @@ jobs: - name: Check if sufficient lines were changed id: diff run: - echo "changed=$(git diff -U0 | grep '^[+|-][^+|-]' | grep -Ev - '^[+-]("POT-Creation-Date|#:)' | wc -l)" >> $GITHUB_OUTPUT + echo "changed=$(git diff -U0 po/reuse.pot | grep '^[+|-][^+|-]' | grep + -Ev '^[+-]("POT-Creation-Date|#:)' | wc -l)" >> $GITHUB_OUTPUT - name: Commit and push updated reuse.pot if: ${{ steps.diff.outputs.changed != '0' }} run: |