]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - .github/workflows/misspell-fixer.yml
Fix the misspell-fixer CI action.
[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         ALLTIME$
25         alltime$
26         Alltime$\
27         " > ${{ runner.workspace }}/inspircd/.misspell-fixer.ignore
28     - uses: sobolevn/misspell-fixer-action@master
29       with:
30         options: '-rvnfuRVD .'
31     - uses: peter-evans/create-pull-request@v2.4.4
32       with:
33         token: ${{ secrets.GITHUB_TOKEN }}
34         branch: ${{ env.REF_BRANCH }}+fix-spellings-${{ env.DATE }}
35         author: 'InspIRCd Robot <noreply@inspircd.org>'
36         committer: 'InspIRCd Robot <noreply@inspircd.org>'
37         commit-message: 'Fixes by misspell-fixer'
38         title: 'Typos fix by misspell-fixer'
39         reviewers: 'genius3000'