Add update-version script#211
Merged
vyasr merged 3 commits intorapidsai:branch-24.02from Jan 18, 2024
Merged
Conversation
Contributor
Author
|
|
bdice
approved these changes
Jan 18, 2024
vyasr
approved these changes
Jan 18, 2024
ajschmidt8
reviewed
Jan 19, 2024
|
|
||
| for file in $(find features -name devcontainer-feature.json); do | ||
| tmp=$(mktemp) | ||
| jq --arg ver "$NEXT_FULL_TAG_PEP440" '.version = $ver' "$file" > "$tmp" && mv "$tmp" "$file" |
Member
There was a problem hiding this comment.
This is trivial, but you can use environment variables to avoid having to pass arguments to jq.
e.g.:
export NEXT_FULL_TAG_PEP440 # var must be exported
jq '.version = env.NEXT_FULL_TAG_PEP440' "$file"docs are here for reference: https://jqlang.github.io/jq/manual/#$env-env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the
ci/release/update-version.shscript used to rev the versions in the repo.Unlike other repos, I used
jqin this script which should be fine since it's a standard tool we use and even include in CI images.