Suraj Shetty | 0a6770a | 2020-10-14 10:21:31 +0530 | [diff] [blame] | 1 | name: Frappe Linter |
| 2 | on: |
| 3 | pull_request: |
| 4 | branches: |
| 5 | - develop |
| 6 | - version-12-hotfix |
| 7 | - version-11-hotfix |
| 8 | jobs: |
| 9 | check_translation: |
| 10 | name: Translation Syntax Check |
| 11 | runs-on: ubuntu-18.04 |
| 12 | steps: |
| 13 | - uses: actions/checkout@v2 |
| 14 | - name: Setup python3 |
| 15 | uses: actions/setup-python@v1 |
| 16 | with: |
| 17 | python-version: 3.6 |
| 18 | - name: Validating Translation Syntax |
| 19 | run: | |
| 20 | git fetch origin $GITHUB_BASE_REF:$GITHUB_BASE_REF -q |
| 21 | files=$(git diff --name-only --diff-filter=d $GITHUB_BASE_REF) |
| 22 | python $GITHUB_WORKSPACE/.github/helper/translation.py $files |