Skip to content

[stable-34.0] fix(shares): Only acquire shares for target path #9414

[stable-34.0] fix(shares): Only acquire shares for target path

[stable-34.0] fix(shares): Only acquire shares for target path #9414

# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: GPL-2.0-or-later
name: Check translations
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, closed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Declare default permissions as read only.
permissions: read-all
jobs:
checkGermanTranslations:
if: ${{ github.event.action != 'closed' && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Check German
run: |
[[ $(grep "Benötigt keine Übersetzung" translations/client_de.ts -c) -gt 0 ]] && exit 1 || exit 0
checkTranslations:
if: ${{ github.event.action != 'closed' && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
container: ghcr.io/nextcloud/continuous-integration-translations-desktop:latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Check Elipsis
run: |
lupdate -no-obsolete src/gui/ src/cmd/ src/common/ $crashreporter src/csync/ src/libsync/ $resources -ts ../ci-client.ts
if [ $(grep '\.\.\.' ../ci-client.ts | wc -l) -ne 0 ]; then
echo "English source contains three consecutive dots. Unicode … should be used instead"
exit -1
fi