From 85c8210e58b1e9fd47d04f2d72145322cbd20353 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Wed, 28 Jun 2023 18:08:38 +0200 Subject: Try to detect if there are translation updates via CI --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 306f21cf..9c84acc4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,6 +74,10 @@ jobs: /bin/sh -c '${{ matrix.prepare }} && \ tools/setup && \ ./configure --enable-libtap --with-ipv6=no && \ + set -x && \ + tmp_dir=$(mktemp -d -t test-XXXX) && cp -a po/ $tmp_dir/ && \ + cd po && make update-po && cd .. && \ + diff -Nur $tmp_dir/po/*.po po/*.po | tee -a /tmp/po.diff && diff -Nur $tmp_dir/po/*.pot po/*.pot | tee -a /tmp/po.diff && if [ $(wc -l /tmp/po.diff | cut -f 1 -d" ") -gt 0 ]; then echo "Error: Translations needs to be updated with make update-po!" && exit 1; fi && \ make && \ make test' docker container prune -f -- cgit v1.2.3-74-g34f1