name: Check Strings

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  check-strings:
    runs-on: source
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 1

      - name: Find Unused Strings
        run: ./tools/unused-strings.sh

      - name: Find Stale Translations
        run: ./tools/stale-translations.sh

      - name: Diff
        run: git --no-pager diff --exit-code HEAD
