Skip to content

Commit 1d4da9f

Browse files
committed
add input for helm chart
1 parent 618fc39 commit 1d4da9f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release-source.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: release-source
22

33
on:
44
workflow_call:
5+
inputs:
6+
is_helm_chart:
7+
description: 'Specify if this is a Helm Chart repository'
8+
required: false
9+
type: boolean
10+
default: false
511

612
permissions:
713
contents: write
@@ -128,7 +134,7 @@ jobs:
128134
- name: Add Helm repository
129135
run: helm repo add datavisyn https://chartmuseum.app.datavisyn.io --username ${{ env.CHARTMUSEUM_USER }} --password ${{ env.CHARTMUSEUM_PASSWORD }}
130136
- name: change charts and subcharts version
131-
if: ${{ github.repository == 'datavisyn/reprovisyn' || github.repository == 'datavisyn/aevidence' || github.repository == 'datavisyn/test-app' }}
137+
if: ${{ github.event.inputs.is_helm_chart }}
132138
run: |
133139
cd deploy/helm
134140
ls_result="$(ls)"
@@ -150,7 +156,7 @@ jobs:
150156
git add .
151157
git commit -m "Update chart version to $RELEASE_VERSION"
152158
- name: update imageTag and repository_tag in values files
153-
if: ${{ github.repository == 'datavisyn/reprovisyn' || github.repository == 'datavisyn/aevidence' }}
159+
if: ${{ github.event.inputs.is_helm_chart }}
154160
run: |
155161
cd deploy/helm
156162
ls_result="$(ls)"
@@ -183,7 +189,7 @@ jobs:
183189
env:
184190
CHARTMUSEUM_PASSWORD: ${{ secrets.DV_CHARTMUSEUM_PASSWORD }}
185191
- name: update readme files
186-
if: ${{ github.repository == 'datavisyn/reprovisyn' || github.repository == 'datavisyn/aevidence' }}
192+
if: ${{ github.event.inputs.is_helm_chart }}
187193
run: |
188194
# install homebrew package manager
189195
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

0 commit comments

Comments
 (0)