From 44d8edea05d940ceb593a025e27466e7c8727f03 Mon Sep 17 00:00:00 2001
From: Josh Soref <2119212+jsoref@users.noreply.github.com>
Date: Tue, 7 Dec 2021 12:09:34 -0500
Subject: ci(spelling): automatically accept aliased commands (#10475)

Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
---
 .github/actions/spelling/expect.txt | 3 +++
 .github/workflows/spelling.yml      | 8 ++++++++
 2 files changed, 11 insertions(+)

(limited to '.github')

diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt
index fc764f57a..76e9fdf31 100644
--- a/.github/actions/spelling/expect.txt
+++ b/.github/actions/spelling/expect.txt
@@ -22,6 +22,7 @@ acr
 acroread
 acs
 acsc
+acss
 acsp
 actionformats
 Adamantium
@@ -1459,6 +1460,7 @@ gpr
 gpristine
 gpsup
 gpu
+gpus
 gpv
 gradle
 gradlew
@@ -2396,6 +2398,7 @@ mirrorlist
 mixin
 mkcd
 mkdir
+mkdirs
 mktag
 mktemp
 mktree
diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml
index 18a302e3c..946d411d1 100644
--- a/.github/workflows/spelling.yml
+++ b/.github/workflows/spelling.yml
@@ -30,6 +30,14 @@ jobs:
     - name: checkout
       if: github.event_name == 'push'
       uses: actions/checkout@v2
+    - name: find aliases
+      run: |
+        for a in $(git ls-files|grep '\.zsh$'); do
+          echo "-- $a"
+          if [ -s "$a" ]; then
+            perl -ne 'next unless s/^alias ([A-Za-z]{3,})=.*/$1/;print' "$a" | tee -a .github/actions/spelling/allow.txt
+          fi
+        done;
     - name: check-spelling
       id: spelling
       uses: check-spelling/check-spelling@prerelease
-- 
cgit v1.2.3-70-g09d2