Skip to content

Commit ed27c1a

Browse files
committed
Limit Helm docs to master
Signed-off-by: JeffMboya <[email protected]>
1 parent 003e7da commit ed27c1a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/helm-docs.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# Copyright (c) Magistrala
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
name: Generate Helm Docs
25

36
on:
4-
pull_request:
7+
push:
58
branches:
6-
- '*' # Run on all pull requests
9+
- master
710

811
jobs:
912
generate-docs:
@@ -12,8 +15,8 @@ jobs:
1215
- name: Checkout repository
1316
uses: actions/checkout@v4
1417
with:
15-
repository: ${{ github.event.pull_request.head.repo.full_name }}
16-
ref: ${{ github.event.pull_request.head.ref }}
18+
repository: ${{ github.repository }}
19+
ref: ${{ github.ref }}
1720
fetch-depth: 0
1821

1922
- name: Generate Helm Docs
@@ -25,4 +28,3 @@ jobs:
2528
template-files: "README.md.gotmpl"
2629
git-push: false
2730
fail-on-diff: true
28-

charts/magistrala/README.md.gotmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212

1313
{{ template "chart.requirementsSection" . }}
1414

15-
{{ template "chart.valuesSection" . }}
15+
{{ template "chart.valuesSection" . }}

0 commit comments

Comments
 (0)