Skip to content

Commit 6304fc2

Browse files
committed
CI: Improve paths in ci.yml
Avoids unnecessary changes by being selective on when to launch the action.
1 parent 50ba8e8 commit 6304fc2

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,21 @@ name: Elixir Building and Testing
66

77
on:
88
push:
9-
paths-ignore:
10-
- "lib/**/*.md"
9+
paths: &paths-filter
10+
- .github/workflows/ci.yml
11+
- lib/*/test/fixtures/**/**.md
12+
13+
# Ignore
14+
- "!*.{md,yml,jsonc}"
15+
- "!.git*"
16+
- "!.github/workflows/**/*"
17+
- "!.ort/**/*"
18+
- "!lib/*/pages/**/*.md"
19+
- "!LICENSES/*"
20+
- "!man/*"
21+
1122
pull_request:
12-
paths-ignore:
13-
- "lib/**/*.md"
23+
paths: *paths-filter
1424

1525
env:
1626
ELIXIR_ASSERT_TIMEOUT: 2000

0 commit comments

Comments
 (0)