ci: weblate checks should always run, should skip on en.json (#16544)

This commit is contained in:
Zack Pollard 2025-03-03 17:12:26 +00:00 committed by GitHub
parent 7bbc1d9f68
commit 23b1256592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: |