mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 07:44:27 +02:00
Switch messages.po check to drone
This commit is contained in:
parent
876b424ae3
commit
57bba711dc
2 changed files with 10 additions and 520 deletions
31
.github/workflows/transifex.yml
vendored
31
.github/workflows/transifex.yml
vendored
|
@ -1,31 +0,0 @@
|
|||
name: Transifex
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
messages:
|
||||
name: Check messages.po changes
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install gettext
|
||||
run: sudo apt-get install gettext
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Run Xgettext
|
||||
run: ./bin/run_xgettext.sh
|
||||
|
||||
- name: Check if messages.po needs an update
|
||||
run: |
|
||||
echo "::group::Check messages.po"
|
||||
# Skip first 4 lines in possible diff, because they're header
|
||||
# Skip all lines of the git diff starting with "@@" or comments or starting "POT-Creation-Date"
|
||||
if [[ $(git diff -U0 ./view/lang/C/messages.po | awk '!/@@|-"POT-Creation-Date|+"POT-Creation-Date|-#|+#/{print }' | wc -l) -gt 4 ]]; then
|
||||
echo "::error file=messages.po::messages.po is out of date"
|
||||
echo "$(git diff ./view/lang/C/messages.po)"
|
||||
exit 1
|
||||
else
|
||||
echo "Nothing to update"
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
shell: bash
|
Loading…
Add table
Add a link
Reference in a new issue