-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
536bed3
commit c4e0280
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Check Documentation Spelling | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
check-spelling: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install build depends | ||
run: | | ||
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates | ||
sudo sed -i '/deb-src/s/^# //' /etc/apt/sources.list | ||
sudo apt update | ||
sudo apt build-dep netplan.io | ||
- name: Run spelling checker | ||
continue-on-error: true | ||
run: | | ||
make -C doc install | ||
make -C doc spelling | ||
- name: Check results | ||
run: | | ||
SPELLING=$(find doc/_build/spelling/ -name '*.spelling') | ||
echo ${SPELLING} | ||
[ -z "${SPELLING}" ] && exit 0 || { cat ${SPELLING} ; exit 1; } |