Skip to content

Commit

Permalink
Remove PO-Revision-Date-only translation PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum5 committed Oct 16, 2021
1 parent 5837ebb commit fe2d4e5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/updatemessages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ jobs:
git add locale
git checkout .
git clean -fd
git reset
- name: Remove useless changes
run: |
set -eu
while IFS= read -r -d $'\0' file; do
if git diff -s --exit-code "$file"; then
continue
fi
if git diff "$file" | tail -n +5 2>/dev/null | grep -qP '^[-+](?!"PO-Revision-Date:)'; then
echo "Changed: $file"
else
echo "No material change: $file"
git checkout "$file" > /dev/null 2>&1
fi
done < <(git ls-files -z 'locale/*/LC_MESSAGES/*.po')
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
Expand Down

0 comments on commit fe2d4e5

Please sign in to comment.