summaryrefslogtreecommitdiff
path: root/.github/workflows/spelling.yml
diff options
context:
space:
mode:
authorJosh Soref <2119212+jsoref@users.noreply.github.com>2021-12-07 12:09:34 -0500
committerGitHub <noreply@github.com>2021-12-07 18:09:34 +0100
commit44d8edea05d940ceb593a025e27466e7c8727f03 (patch)
tree0dfbfa713085afe36aa4f1c761aaefd18dee417e /.github/workflows/spelling.yml
parent29b344a7102a2fe427d5ea6bcde4044898be1112 (diff)
downloadzsh-44d8edea05d940ceb593a025e27466e7c8727f03.tar.gz
zsh-44d8edea05d940ceb593a025e27466e7c8727f03.tar.bz2
zsh-44d8edea05d940ceb593a025e27466e7c8727f03.zip
ci(spelling): automatically accept aliased commands (#10475)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Diffstat (limited to '.github/workflows/spelling.yml')
-rw-r--r--.github/workflows/spelling.yml8
1 files changed, 8 insertions, 0 deletions
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