Skip to content

Commit

Permalink
Compare i18n changes with correct branch (#1884)
Browse files Browse the repository at this point in the history
Co-authored-by: Quantum <quantum2048@gmail.com>
  • Loading branch information
int-y1 and quantum5 authored Mar 6, 2022
1 parent 0a8e3cf commit 9d29b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/updatemessages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ jobs:
- name: Remove useless changes
run: |
set -eu
i18n_head=$(git rev-parse --verify -q origin/update-i18n || echo "HEAD")
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:|"POT-Creation-Date:)'; then
if git diff "$i18n_head" -- "$file" | tail -n +5 2>/dev/null | grep -qP '^[-+](?!"PO-Revision-Date:|"POT-Creation-Date:)'; then
echo "Changed: $file"
else
echo "No material change: $file"
Expand Down

0 comments on commit 9d29b04

Please # to comment.