Setup spell checker for localizable file #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for localizable changes | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- stable* | |
pull_request: | |
branches: | |
- main | |
- master | |
- stable* | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
check-localizable: | |
name: Check for localizable changes | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout app | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Run localizable generation | |
run: | | |
source ./generate-localizable-strings-file.sh | |
- name: Install dependencies | |
run: | | |
pip3 install --upgrade pip setuptools | |
pip3 install pyspelling | |
brew install aspell | |
- name: Spell check | |
run: | | |
python3 -m pyspelling | |
- name: Verify Changed files | |
uses: tj-actions/verify-changed-files@v16 | |
id: verify-changed-files | |
if: always() | |
with: | |
fail-if-changed: true | |
files: | | |
NextcloudTalk/en.lproj/Localizable.strings |