-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error due to Hypen(-) in key name in yaml #567
Comments
Please check e.g #433 |
@prabhat-kumar-ts Hi, fellas. In my case, I found the perfect solution for handling jsonPath: SolutionThe value structure of the helm chart I was trying to change is as follows: # example-chart/values.yaml
...
podLabels:
restarting-trigger-salt: '0434' I observed that setting propertyPath to # Error log for Github Actions Workflow
2024-05-08T04:24:10.8095603Z ##[error]Error: Parse error on line 1:
$..podLabels[restarting-trigger-s
-------------^
Expecting 'STAR', 'SCRIPT_EXPRESSION', 'INTEGER', 'ARRAY_SLICE', 'FILTER_EXPRESSION', 'QQ_STRING', 'Q_STRING', got 'IDENTIFIER' To make it work properly, - '.podLabels[restarting-trigger-salt]'
+ '.podLabels["restarting-trigger-salt"]' In Actions Workflow, the normally executed yaml update step is as follows. # .github/workflows/yaml-update.yml
- name: Update helm chart
uses: actions/yaml-update-action@main
with:
valueFile: ${{ inputs.application }}/values.yaml
propertyPath: '.podLabels["restarting-trigger-salt"]'
value: ${{ env.RESTART_TRIGGER_SALT }} Related issue |
Not updating yaml file due to hyphen in key name and generating error.
The text was updated successfully, but these errors were encountered: