Skip to content

Commit 6f3ebf4

Browse files
committed
build: Only run github actions based on folder changes
1 parent 278a684 commit 6f3ebf4

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/kubernetes-charts-build.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
name: Kubernetes - Lint, Test, and Publish Helm Charts
22

3-
on: pull_request
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
paths:
8+
- 'deployment/kubernetes/**'
9+
tags:
10+
- 'v*.*.*' # e.g., v0.1.1
11+
412
defaults:
513
run:
614
working-directory: ./deployment/kubernetes
715

8-
916
jobs:
1017
helm-lint-test:
1118
runs-on: ubuntu-latest

.github/workflows/observability-docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ name: ci-build
22

33
on:
44
push:
5-
branches:
6-
- '**'
5+
branches: [ main ]
6+
pull_request:
7+
paths:
8+
- 'observability/**'
79
tags:
810
- 'v*.*.*' # e.g., v0.1.1
911

0 commit comments

Comments
 (0)