]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - .github/workflows/misspell-fixer.yml
Space-delimit the human readable callerid extensible data.
[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:.*:atleast
24         ^./src/modules/m_disable.cpp:119:existant
25         ^.*\.\(cpp\|h\).*eiter$
26         ALLTIME$
27         alltime$
28         Alltime$\
29         " > ${{ runner.workspace }}/inspircd/.misspell-fixer.ignore
30     - uses: sobolevn/misspell-fixer-action@master
31       with:
32         options: '-rvnfuRVD .'
33     - uses: peter-evans/create-pull-request@v3
34       with:
35         token: ${{ secrets.GITHUB_TOKEN }}
36         branch: ${{ env.REF_BRANCH }}+fix-spellings-${{ env.DATE }}
37         author: 'InspIRCd Robot <noreply@inspircd.org>'
38         committer: 'InspIRCd Robot <noreply@inspircd.org>'
39         commit-message: 'Fixes by misspell-fixer'
40         title: 'Typos fix by misspell-fixer'
41         reviewers: 'genius3000'