diff --git a/.github/workflows/code-spell-check.yml b/.github/workflows/code-spell-check.yml index 8227529c..6ed63668 100644 --- a/.github/workflows/code-spell-check.yml +++ b/.github/workflows/code-spell-check.yml @@ -1,4 +1,4 @@ -# Finds typos in the English language file, and submits a PR with fixes +# Finds typos in the English language within the app, submits a PR with fixes name: Auto-Fix Spelling on: - push @@ -6,13 +6,19 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: sobolevn/misspell-fixer-action@master - - uses: peter-evans/create-pull-request@v3.10.1 + - name: Checkout + if: startsWith(github.head_ref, 'AUTO/') == false + uses: actions/checkout@v2 + - name: Spell Check + if: startsWith(github.head_ref, 'AUTO/') == false + uses: sobolevn/misspell-fixer-action@master + - name: Create PR + uses: peter-evans/create-pull-request@v3.10.1 + if: startsWith(github.head_ref, 'AUTO/') == false with: token: ${{ secrets.BOT_GITHUB_TOKEN }} - commit-message: ':pencil2: Auto-fix typos in translations file' - title: '[AUTO] Fix spelling in language file' + commit-message: ':pencil2: Auto-fix typos in text' + title: '[AUTO] Fix spelling and language' branch: 'AUTO/spelling-corrections' committer: 'Liss-Bot ' assignees: Lissy93