Skip to content

jacobtomlinson/gha-read-helm-chart

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read Helm Chart

GitHub Marketplace Actions Status Actions Status

This action will read a Helm Chart's Chart.yaml file and expose the values as outputs.

Usage

Describe how to use your action here.

Example workflow

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

Inputs

Input Description
path Path to the helm chart relative to the root of your project.

Outputs

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)

Examples

Using outputs

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 }}"