From 23b12565925634b35ecee246919d5ed6414178ab Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Mon, 3 Mar 2025 17:12:26 +0000 Subject: [PATCH] ci: weblate checks should always run, should skip on en.json (#16544) --- .github/workflows/weblate-lock.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.yml index 75f494395f..29a30640bd 100644 --- a/.github/workflows/weblate-lock.yml +++ b/.github/workflows/weblate-lock.yml @@ -3,14 +3,25 @@ name: Weblate checks on: pull_request: branches: [main] - paths: - - 'i18n/**' jobs: + pre-job: + runs-on: ubuntu-latest + outputs: + should_run: ${{ steps.found_paths.outputs.i18n == 'true' && github.head_ref != 'chore/translations'}} + steps: + - name: Checkout code + uses: actions/checkout@v4 + - id: found_paths + uses: dorny/paths-filter@v3 + with: + filters: | + i18n: + - 'i18n/!(en)**\.json' enforce-lock: name: Check Weblate Lock runs-on: ubuntu-latest - if: github.head_ref != 'chore/translations' + if: ${{ needs.pre-job.outputs.should_run == 'true' }} steps: - name: Check weblate lock run: |