master-server/deps/curl/.github/workflows/spellcheck.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2023-12-11 20:30:44 -05:00
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
name: spell
on:
push:
branches:
2024-05-15 15:20:32 -04:00
- master
2023-12-11 20:30:44 -05:00
paths:
2024-05-15 15:20:32 -04:00
- '**.md'
- '**/spellcheck.yml'
- '**/spellcheck.yaml'
- '.github/scripts/*'
2023-12-11 20:30:44 -05:00
pull_request:
branches:
2024-05-15 15:20:32 -04:00
- master
2023-12-11 20:30:44 -05:00
paths:
2024-05-15 15:20:32 -04:00
- '**.md'
- '**/spellcheck.yml'
- '**/spellcheck.yaml'
- '.github/scripts/*'
2023-12-11 20:30:44 -05:00
permissions: {}
jobs:
check:
runs-on: ubuntu-latest
steps:
2024-05-15 15:20:32 -04:00
- uses: actions/checkout@v4
2023-12-11 20:30:44 -05:00
2024-05-15 15:20:32 -04:00
- name: trim all man page *.md files
run: find docs -name "*.md" ! -name "_*" | xargs -n1 ./.github/scripts/cleancmd.pl
2023-12-11 20:30:44 -05:00
2024-05-15 15:20:32 -04:00
- name: trim libcurl man page *.md files
run: find docs/libcurl -name "curl_*.md" -o -name "libcurl*.md" | xargs -n1 ./.github/scripts/cleanspell.pl
2023-12-11 20:30:44 -05:00
2024-05-15 15:20:32 -04:00
- name: trim libcurl option man page *.md files
run: find docs/libcurl/opts -name "CURL*.md" | xargs -n1 ./.github/scripts/cleanspell.pl
2023-12-11 20:30:44 -05:00
2024-05-15 15:20:32 -04:00
- name: trim cmdline docs markdown _*.md files
run: find docs/cmdline-opts -name "_*.md" | xargs -n1 ./.github/scripts/cleancmd.pl --no-header
2023-12-11 20:30:44 -05:00
2024-05-15 15:20:32 -04:00
- name: setup the custom wordlist
run: grep -v '^#' .github/scripts/spellcheck.words > wordlist.txt
2023-12-11 20:30:44 -05:00
2024-05-15 15:20:32 -04:00
- name: Check Spelling
uses: rojopolis/spellcheck-github-actions@v0
with:
config_path: .github/scripts/spellcheck.yaml