fix: use file kind instead of json for devcontainer updates #1830
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes the updatecli workflow failure in the weekly branch by switching from JSON path queries to file pattern matching.
Problem
The updatecli workflow was failing with:
The JSON path query syntax couldn't properly handle keys containing special characters (dots, slashes, colons), even with bracket notation.
Solution
Changed from
jsonkind with JSON path queries tofilekind with regex pattern matching:Before:
After:
This approach uses regex to find and update the version values, avoiding JSON path limitations with special characters.
Changes
updatecli/updatecli.d/devcontainer.yaml: Converted bothdockerVersionandgithubcliVersiontargets fromjsonkind tofilekindTesting
✅ updatecli workflow now passes: https://github.com/jenkins-docs/quickstart-tutorials/actions/runs/19359860819
Related
codespaces.yaml)