]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .github/workflows/misspell-fixer.yml
Fix not parsing connect class hosts for inherited classes.
[user/henk/code/inspircd.git] / .github / workflows / misspell-fixer.yml
index 2ccba48571f684a27bd557144c1aff4c0553c2c4..97a2193cb29fc81bac298a22dbe00d09157d04ab 100644 (file)
@@ -4,6 +4,7 @@ on:
     - cron: '0 0 15 * *'
 jobs:
   build:
+    if: github.repository == 'inspircd/inspircd'
     runs-on: ubuntu-latest
     env:
       REF_BRANCH: ${{ github.ref }}
@@ -11,16 +12,17 @@ jobs:
     - uses: actions/checkout@v2
     - name : Set a couple env variables
       run: |
-        echo "::set-env name=DATE::$(date +'%Y-%m-%d')"
-        echo "::set-env name=REF_BRANCH::${REF_BRANCH//refs\/heads\//}"
+        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
+        ^.*\.\(cpp\|h\).*eiter$
         ALLTIME$
         alltime$
         Alltime$\
@@ -28,7 +30,7 @@ jobs:
     - 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 }}