X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.github%2Fworkflows%2Fmisspell-fixer.yml;h=97a2193cb29fc81bac298a22dbe00d09157d04ab;hb=b3449b8763139602efc568f46631299476d5979f;hp=ce05bc81507d02eba88032a8627aa159aab57f4b;hpb=43d0efaa2195c445ae7cc130d235781506758a9d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/.github/workflows/misspell-fixer.yml b/.github/workflows/misspell-fixer.yml index ce05bc815..97a2193cb 100644 --- a/.github/workflows/misspell-fixer.yml +++ b/.github/workflows/misspell-fixer.yml @@ -1,38 +1,41 @@ -name: misspell fixer +name: Misspell fixer on: - - push + 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:287:atleast + ^./make/directive.pm:.*:atleast ^./src/modules/m_disable.cpp:119:existant - ^./docs/conf/helpop.conf.example:443:ALLTIME - ^./docs/conf/helpop.conf.example:551:ALLTIME - ^./docs/conf/helpop.conf.example:551:alltime - ^./docs/conf/modules.conf.example:170:Alltime - ^./docs/conf/modules.conf.example:171:ALLTIME - ^./docs/conf/modules.conf.example:172:ALLTIME - ^./docs/conf/modules.conf.example:173:alltime - ^./docs/conf/opers.conf.example:58:ALLTIME - ^./src/modules/m_alltime.cpp:31:ALLTIME - ^./src/modules/m_alltime.cpp:65:ALLTIME\ + ^.*\.\(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@v2.4.4 + - uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ env.REF_BRANCH }}+fix-spellings-${{ env.DATE }} author: 'InspIRCd Robot ' - commiter: 'InspIRCd Robot ' + committer: 'InspIRCd Robot ' commit-message: 'Fixes by misspell-fixer' title: 'Typos fix by misspell-fixer' reviewers: 'genius3000'