From 8e076ecfe41bfd1a0ca09ddec9bcf5c2147dc460 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Mon, 3 Mar 2025 12:39:53 +0100 Subject: [PATCH] feat: weblate checks workflow (#16251) --- .github/workflows/weblate-lock.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/weblate-lock.yml diff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.yml new file mode 100644 index 0000000000..317dd7c33a --- /dev/null +++ b/.github/workflows/weblate-lock.yml @@ -0,0 +1,25 @@ +name: Weblate checks + +on: + pull_request: + branches: [main] + paths: + - 'i18n/**' + +jobs: + enforce-lock: + runs-on: ubuntu-latest + steps: + - name: Check weblate lock + run: | + if [[ "false" = $(curl https://hosted.weblate.org/api/components/immich/immich/lock/ | jq .locked) ]]; then + exit 1 + fi + - name: Find Pull Request + uses: juliangruber/find-pull-request-action@v1 + id: find-pr + with: + branch: chore/translations + - name: Fail if existing weblate PR + if: ${{ steps.find-pr.outputs.number }} + run: exit 1