Skip to content

Commit c59ff99

Browse files
authored
Merge pull request #3038 from znz/ci/limit-paths
CI: skip runs for refm/- and docs/-only changes, narrow misspell scope
2 parents ce18628 + 65d1302 commit c59ff99

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'docs/**'
7+
- 'refm/**'
8+
pull_request:
9+
paths-ignore:
10+
- 'docs/**'
11+
- 'refm/**'
412

513
jobs:
614
ruby-versions:
@@ -103,4 +111,4 @@ jobs:
103111
run: 'curl -L https://git.io/misspell | bash'
104112
- name: Run misspell
105113
run: |
106-
git ls-files -z | xargs -0 ./bin/misspell -error -i addopt
114+
git ls-files -z -- ':(top)' ':(exclude)refm' ':(exclude)docs' | xargs -0 ./bin/misspell -error -i addopt

0 commit comments

Comments
 (0)