Skip to content

Commit 74e60ac

Browse files
committed
btrfs-progs: ci: limit codespell workflow only on release and requested branches
The Codespell workflow is useful and catches a lot of typos. However it also makes development and CI use harder. Documentation updates do not need the full CI so it's skipped. If a typo sneaks in any followup pull request or devel update will fail. We want to run the CI for code and updating and restarting the CI spends all the free minutes available for the github actions. At the slight inconvenience of missing some typos during development limit the codespell workflow only on the 'release-test' branch or with the prefix 'codespell/'. [ci skip] Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 1b7c23e commit 74e60ac

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/codespell.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Check for typos on devel and pull rquests
1+
# Check for typos on release and on-demand branches
2+
#
3+
# NOTE: this is not run on devel or pull requests
4+
#
25
# - codespell configuration is within .codespellrc
36
# - the workflow can be run separately from other workflows that trigger on
47
# ci/* branches, use codespell/* as the prefix
@@ -9,13 +12,8 @@ run-name: Codespell
912
on:
1013
push:
1114
branches:
12-
- devel
13-
- 'ci/**'
15+
- release-test
1416
- 'codespell/**'
15-
pull_request:
16-
branches:
17-
- devel
18-
- 'ci/**'
1917

2018
permissions:
2119
contents: read

0 commit comments

Comments
 (0)