inspircd/.github/workflows/misspell-fixer.yml
Matt Schatz eab6992220
Improvements and updates to misspell-fixer.
- Update to v3 of the create-pull-request action.
- Improve the whitelist for directive.pm 'atleast'.
- Whitelist 'eiter' in source and header files.
2021-02-06 23:11:01 -07:00

42 lines
1.3 KiB
YAML

name: Misspell fixer
on:
schedule:
- cron: '0 0 15 * *'
jobs:
build:
if: github.repository == 'inspircd/inspircd'
runs-on: ubuntu-latest
env:
REF_BRANCH: ${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name : Set a couple env variables
run: |
echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
echo "REF_BRANCH=${REF_BRANCH//refs\/heads\//}" >> $GITHUB_ENV
- name: Whitelist some directories and files
run: |
echo "\
^./.github/workflows
^./.mailmap
^./vendor
^./make/directive.pm:.*:atleast
^./src/modules/m_disable.cpp:119:existant
^.*\.\(cpp\|h\).*eiter$
ALLTIME$
alltime$
Alltime$\
" > ${{ runner.workspace }}/inspircd/.misspell-fixer.ignore
- uses: sobolevn/misspell-fixer-action@master
with:
options: '-rvnfuRVD .'
- uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.REF_BRANCH }}+fix-spellings-${{ env.DATE }}
author: 'InspIRCd Robot <noreply@inspircd.org>'
committer: 'InspIRCd Robot <noreply@inspircd.org>'
commit-message: 'Fixes by misspell-fixer'
title: 'Typos fix by misspell-fixer'
reviewers: 'genius3000'