]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - .github/workflows/misspell-fixer.yml
Use a nicer branch name in misspell-fixer.
[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     runs-on: ubuntu-latest
8     env:
9       REF_BRANCH: ${{ github.ref }}
10     steps:
11     - uses: actions/checkout@v2
12     - name : Set a couple env variables
13       run: |
14         echo "::set-env name=DATE::$(date +'%Y-%m-%d')"
15         echo "::set-env name=REF_BRANCH::${REF_BRANCH//refs\/heads\//}"
16     - name: Whitelist some directories and files
17       run: |
18         echo "\
19         ^./.github/workflows
20         ^./.mailmap
21         ^./vendor
22         ^./make/directive.pm:287:atleast
23         ^./src/modules/m_disable.cpp:119:existant
24         ^./docs/conf/helpop.conf.example:443:ALLTIME
25         ^./docs/conf/helpop.conf.example:551:ALLTIME
26         ^./docs/conf/helpop.conf.example:551:alltime
27         ^./docs/conf/modules.conf.example:170:Alltime
28         ^./docs/conf/modules.conf.example:171:ALLTIME
29         ^./docs/conf/modules.conf.example:172:ALLTIME
30         ^./docs/conf/modules.conf.example:173:alltime
31         ^./docs/conf/opers.conf.example:58:ALLTIME
32         ^./src/modules/m_alltime.cpp:31:ALLTIME
33         ^./src/modules/m_alltime.cpp:65:ALLTIME\
34         " > ${{ runner.workspace }}/inspircd/.misspell-fixer.ignore
35     - uses: sobolevn/misspell-fixer-action@master
36       with:
37         options: '-rvnfuRVD .'
38     - uses: peter-evans/create-pull-request@v2.4.4
39       with:
40         token: ${{ secrets.GITHUB_TOKEN }}
41         branch: ${{ env.REF_BRANCH }}+fix-spellings-${{ env.DATE }}
42         author: 'InspIRCd Robot <noreply@inspircd.org>'
43         commiter: 'InspIRCd Robot <noreply@inspircd.org>'
44         commit-message: 'Fixes by misspell-fixer'
45         title: 'Typos fix by misspell-fixer'
46         reviewers: 'genius3000'