[monitoring-plugins] Try to detect if there are translation updates ...
Jan Wagner
git at monitoring-plugins.org
Tue Jul 11 23:10:11 CEST 2023
Module: monitoring-plugins
Branch: master
Commit: 85c8210e58b1e9fd47d04f2d72145322cbd20353
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Jun 28 18:08:38 2023 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=85c8210
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 306f21c..9c84acc 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
More information about the Commits
mailing list