44d8edea05d940ceb593a025e27466e7c8727f03

Author
Josh Soref <2119212+jsoref@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

ci(spelling): automatically accept aliased commands (#10475)

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>

Diff

 1diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt
 2index fc764f57ab302ba6c0c255fca3e21731ae7ca677..76e9fdf318ed0b0f403af755ad59c3792bf51257 100644
 3--- a/.github/actions/spelling/expect.txt
 4+++ b/.github/actions/spelling/expect.txt
 5@@ -22,6 +22,7 @@ acr
 6 acroread
 7 acs
 8 acsc
 9+acss
10 acsp
11 actionformats
12 Adamantium
13@@ -1459,6 +1460,7 @@ gpr
14 gpristine
15 gpsup
16 gpu
17+gpus
18 gpv
19 gradle
20 gradlew
21@@ -2396,6 +2398,7 @@ mirrorlist
22 mixin
23 mkcd
24 mkdir
25+mkdirs
26 mktag
27 mktemp
28 mktree
29diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml
30index 18a302e3c21f83664fbf0916bb00a7cf074c2fa3..946d411d1ac035d61db6c16c77841f84fb575253 100644
31--- a/.github/workflows/spelling.yml
32+++ b/.github/workflows/spelling.yml
33@@ -30,6 +30,14 @@ jobs:
34     - name: checkout
35       if: github.event_name == 'push'
36       uses: actions/checkout@v2
37+    - name: find aliases
38+      run: |
39+        for a in $(git ls-files|grep '\.zsh$'); do
40+          echo "-- $a"
41+          if [ -s "$a" ]; then
42+            perl -ne 'next unless s/^alias ([A-Za-z]{3,})=.*/$1/;print' "$a" | tee -a .github/actions/spelling/allow.txt
43+          fi
44+        done;
45     - name: check-spelling
46       id: spelling
47       uses: check-spelling/check-spelling@prerelease