]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - .github/workflows/misspell-fixer.yml
Update the misspell-fixer ignores.
[user/henk/code/inspircd.git] / .github / workflows / misspell-fixer.yml
1 name: Misspell fixer
2 on:
3   schedule:
4     - cron: '0 0 15 * *'
5 jobs:
6   build:
7     if: github.repository == 'inspircd/inspircd'
8     runs-on: ubuntu-latest
9     env:
10       REF_BRANCH: ${{ github.ref }}
11     steps:
12     - uses: actions/checkout@v2
13     - name : Set a couple env variables
14       run: |
15         echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
16         echo "REF_BRANCH=${REF_BRANCH//refs\/heads\//}" >> $GITHUB_ENV
17     - name: Whitelist some directories and files
18       run: |
19         echo "\
20         ^./.github/workflows
21         ^./.mailmap
22         ^./vendor
23         ^./make/directive.pm:281:atleast
24         ^./src/modules/m_disable.cpp:119:existant
25         ALLTIME$
26         alltime$
27         Alltime$\
28         " > ${{ runner.workspace }}/inspircd/.misspell-fixer.ignore
29     - uses: sobolevn/misspell-fixer-action@master
30       with:
31         options: '-rvnfuRVD .'
32     - uses: peter-evans/create-pull-request@v2.4.4
33       with:
34         token: ${{ secrets.GITHUB_TOKEN }}
35         branch: ${{ env.REF_BRANCH }}+fix-spellings-${{ env.DATE }}
36         author: 'InspIRCd Robot <noreply@inspircd.org>'
37         committer: 'InspIRCd Robot <noreply@inspircd.org>'
38         commit-message: 'Fixes by misspell-fixer'
39         title: 'Typos fix by misspell-fixer'
40         reviewers: 'genius3000'