This action replaces specific value in all Helm Chart YAML files in an array of folders.
Required Array of chart folders.
Required The key of the value that needs to be replaced in the YAML file.
Required The value for the key that needs to be replaced in the YAML file.
If you need to push these changes, set true, default false
Notice You need to supply your Personal Access Token (PAT) which allows repository access to the checkout action. For example:
- name: Checkout repository
uses: actions/checkout@v8
with:
fetch-depth: 0
token: ${{ secrets.MY_PERSONAL_ACCESS_TOKEN }}uses: kmanimaran/yaml-replacement-action@v8
with:
yaml-file-path: 'setting.yaml'
target-key: 'step.revision'
target-value: 'value'
need-push: trueIn the above example, the setting.yaml file should be in the following format:
step:
revision: '202301011200' # <- replace