Skip to content

Commit 286601c

Browse files
committed
ci: do not run full backend ci when changing docs
Signed-off-by: Luca Zaninotto <luca.zaninotto@secomind.com>
1 parent 8c77078 commit 286601c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/backend-ci.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
name: Backend CI
2020

2121
on:
22-
# Run when pushing to stable branches
2322
push:
2423
paths:
2524
- "backend/**"
@@ -29,10 +28,10 @@ on:
2928
- "main"
3029
- "release-*"
3130
- "renovate/backend-*"
32-
# Run on pull requests matching apps
3331
pull_request:
3432
paths:
3533
- "backend/**"
34+
- "!backend/docs/**"
3635
- ".tool-versions"
3736
- ".github/workflows/backend-*.yaml"
3837

.github/workflows/docs-ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ name: Edgehog docs generation
2222
# publish Generate and publish docs on pushes on main (or release branches) only
2323
# when backend or frontend files are touched.
2424
on:
25+
pull_request:
26+
paths:
27+
- "backend/docs/**"
28+
- ".tool-versions"
29+
- ".github/workflows/docs-ci.yaml"
2530
workflow_call:
2631
inputs:
2732
release-made:

0 commit comments

Comments
 (0)