normalize paths

This commit is contained in:
2026-05-29 10:46:30 -04:00
parent 317c2289c9
commit 31865394fb
2 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ Login to an OCI registry, update chart dependencies, and run helm upgrade for th
| `REGISTRY` | <p>OCI registry hostname for helm dependency login</p> | `true` | `""` | | `REGISTRY` | <p>OCI registry hostname for helm dependency login</p> | `true` | `""` |
| `REGISTRY_USERNAME` | <p>Username for OCI registry login</p> | `true` | `""` | | `REGISTRY_USERNAME` | <p>Username for OCI registry login</p> | `true` | `""` |
| `REGISTRY_TOKEN` | <p>Token for OCI registry login</p> | `true` | `""` | | `REGISTRY_TOKEN` | <p>Token for OCI registry login</p> | `true` | `""` |
| `CHART_PATH` | <p>Path to the Helm chart</p> | `false` | `.` | | `CHART_PATH` | <p>Path to the Helm chart</p> | `false` | `./helm` |
| `VALUES_FILE` | <p>Path to a values file (optional)</p> | `false` | `""` | | `VALUES_FILE` | <p>The values file to use</p> | `false` | `./helm/values.yaml` |
<!-- action-docs-inputs source="action.yml" --> <!-- action-docs-inputs source="action.yml" -->
<!-- action-docs-runs source="action.yml" --> <!-- action-docs-runs source="action.yml" -->
+5 -7
View File
@@ -15,10 +15,10 @@ inputs:
required: true required: true
CHART_PATH: CHART_PATH:
description: "Path to the Helm chart" description: "Path to the Helm chart"
default: "." default: "./helm"
VALUES_FILE: VALUES_FILE:
description: "Path to a values file (optional)" description: "The values file to use"
default: "" default: "./helm/values.yaml"
runs: runs:
using: composite using: composite
@@ -34,10 +34,8 @@ runs:
shell: sh shell: sh
run: | run: |
helm dependency update ${{ inputs.CHART_PATH }} helm dependency update ${{ inputs.CHART_PATH }}
VALUES_FLAG="" echo "Running: helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} --values ${{ inputs.VALUES_FILE }}"
if [ -n "${{ inputs.VALUES_FILE }}" ]; then VALUES_FLAG="--values ${{ inputs.VALUES_FILE }}"; fi helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} --values ${{ inputs.VALUES_FILE }}
echo "Running: helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} $VALUES_FLAG"
helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} $VALUES_FLAG
- name: Remove kubeconfig - name: Remove kubeconfig
if: always() if: always()