mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 09:46:55 +00:00
For quick checks before a push of non-code changes we may want to do only the spellchecking workflow. Any branch pushed matching the prefix "codespell/" will be picked by this. Signed-off-by: David Sterba <dsterba@suse.com>
35 lines
762 B
YAML
35 lines
762 B
YAML
# Check for typos on devel and pull rquests
|
|
# - codespell configuration is within .codespellrc
|
|
# - the workflow can be run separately from other workflows that trigger on
|
|
# ci/* branches, use codespell/* as the prefix
|
|
|
|
name: Codespell
|
|
run-name: Codespell
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- devel
|
|
- 'ci/**'
|
|
- 'codespell/**'
|
|
pull_request:
|
|
branches:
|
|
- devel
|
|
- 'ci/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
codespell:
|
|
name: Check for spelling errors
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Annotate locations with typos
|
|
uses: codespell-project/codespell-problem-matcher@v1
|
|
- name: Codespell
|
|
uses: codespell-project/actions-codespell@v2
|