Skip to content

Commit 068101a

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 068101a

2 files changed

Lines changed: 9 additions & 3 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: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,23 @@ 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:
2833
required: true
2934
type: boolean
35+
default: false
3036
release-version:
3137
type: string
38+
default: snapshot
3239
publish:
3340
type: boolean
34-
default: true
41+
default: false
3542
secrets:
3643
publish-key:
3744
required: true

0 commit comments

Comments
 (0)