Skip to content

Commit d734bd1

Browse files
committed
Issue #174: skip markdown-only pushes in CI and Maven workflows
Add paths-ignore ('**/*.md', 'docs/**') to the push and pull_request triggers of ci.yml and maven.yml so docs-only pushes cost zero runner minutes. Fixes the residual, unscopde half of the original cost-optimisation ticket (#174).
1 parent d8a4e50 commit d734bd1

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

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

33
on:
44
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
- 'docs/**'
58
branches: ["**"]
69
pull_request:
10+
paths-ignore:
11+
- '**/*.md'
12+
- 'docs/**'
713
branches: ["**"]
814

915
concurrency:

‎.github/workflows/maven.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Java CI with Maven
22

33
on:
44
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
- 'docs/**'
58
branches: [ "main" ]
69
pull_request:
10+
paths-ignore:
11+
- '**/*.md'
12+
- 'docs/**'
713
branches: [ "main" ]
814
types: [opened, synchronize, reopened]
915

0 commit comments

Comments
 (0)