Skip to content

Commit

Permalink
Be stricter about regenerating reuse.pot
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
carmenbianca committed Oct 24, 2024
1 parent dfe2dc8 commit ca7bf90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gettext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit ca7bf90

Please sign in to comment.