This action will read a Helm Chart's Chart.yaml
file and expose the values as outputs.
Describe how to use your action here.
name: My Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Read Helm Chart
uses: jacobtomlinson/gha-read-helm-chart@master
with:
path: path/to/chart
Input | Description |
---|---|
path |
Path to the helm chart relative to the root of your project. |
Output | Description |
---|---|
apiVersion |
The chart API version (always set) |
name |
The name of the chart (always set) |
version |
A SemVer 2 version (always set) |
kubeVersion |
A SemVer range of compatible Kubernetes versions (optional) |
description |
A single-sentence description of this project (optional) |
type |
It is the type of chart (optional) |
keywords |
A list of keywords about this project (optional) |
home |
The URL of this project's home page (optional) |
sources |
A list of URLs to source code for this project (optional) |
depenencies_{name}_version |
Version of dependency {name} (optional) |
depenencies_{name}_repository |
Repository URL of dependency {name} (optional) |
repository |
The repository URL (optional) |
icon |
A URL to an SVG or PNG image to be used as an icon (optional) |
appVersion |
The version of the app that this contains (optional) |
deprecated |
Whether this chart is deprecated (optional) |
steps:
- uses: actions/checkout@master
- name: Read Helm Chart
id: chart
uses: jacobtomlinson/gha-read-helm-chart@master
with:
path: path/to/chart
- name: Print outputs
run: |
echo "Name - ${{ steps.chart.outputs.name }}"
echo "Version - ${{ steps.chart.outputs.version }}"
echo "App Version - ${{ steps.chart.outputs.appVersion }}"