Skip to content

Commit 32f6b21

Browse files
committed
add check for helm chart before publishing
1 parent 22a38af commit 32f6b21

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build_publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,15 @@ jobs:
104104
# Package and push Helm chart to GHCR
105105
# ------------------------------------------------------------
106106
- name: Set up Helm
107-
if: github.event_name == 'release' || inputs.push_image
108107
uses: azure/setup-helm@v4
109108

110109
- name: Publish Helm chart
111110
if: github.event_name == 'release' || inputs.push_image
112111
run: |
112+
if [[ ! -f firefly/helm/Chart.yaml ]]; then
113+
echo "No Helm chart found, skipping."
114+
exit 0
115+
fi
113116
# align chart appVersion with the image tag
114117
sed -i "s/^appVersion:.*/appVersion: \"${{ steps.resolve_tags.outputs.tag }}\"/" firefly/helm/Chart.yaml
115118
helm package firefly/helm/

0 commit comments

Comments
 (0)