mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
ci(spelling): automatically accept aliased commands (#10475)
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
29b344a710
commit
44d8edea05
2 changed files with 11 additions and 0 deletions
3
.github/actions/spelling/expect.txt
vendored
3
.github/actions/spelling/expect.txt
vendored
|
@ -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
|
||||
|
|
8
.github/workflows/spelling.yml
vendored
8
.github/workflows/spelling.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue