💚 Dont run on auto-submitted branches

This commit is contained in:
Alicia Sykes 2021-09-09 19:53:54 +01:00
parent d5d525acd0
commit de49b5bb81
1 changed files with 12 additions and 6 deletions

View File

@ -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 <alicia-gh-bot@mail.as93.net>'
assignees: Lissy93