This GitHub Action updates YAML file values
- uses: rmeneely/update-yaml@v1
with:
# Infile. The YAML file to be read and updated
# Default: 'values.yaml'
# Optional
infile: 'values.yaml
# varlist - a comma separated list of variable values. e.g version=v1.2.3,image.tag=latest
# Default: ''
# Optional
varlist: 'version=v1.2.3,image.tag=latest'
# Sets image tag in values.yaml file
# Example:
- uses: rmeneely/update-yaml@v1
with:
infile: values.yaml
varlist: 'image.tag=v1.2.3'
# Sets appVersion and version in Chart.yaml
# Example:
- uses: rmeneely/update-yaml@v1
with:
infile: values.yaml
varlist: appVersion=v1.2.3,version=4.5.6
# Sets dependency version in Chart.yaml list of dependencies
# Example:
- uses: rmeneely/update-yaml@v1
with:
infile: Chart.yaml
varlist: dependencies[name=myapp].version=\"1.0.1\"
This will update the dependencies.version
value to "1.0.1" where that same list item has dependencies.name
set to 'myapp'.
steps.update-yaml.outputs.updated - Set to 'true' or 'false'
The MIT License (MIT)