Skip to content
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

Update latest release variable for agave docs #3220

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/set-solana-release-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ cd "$(dirname "$0")"
eval "$(../ci/channel-info.sh)"

if [[ -n $BETA_CHANNEL_LATEST_TAG ]]; then
LATEST_SOLANA_RELEASE_VERSION=$BETA_CHANNEL_LATEST_TAG
LATEST_AGAVE_RELEASE_VERSION=$BETA_CHANNEL_LATEST_TAG
else
LATEST_SOLANA_RELEASE_VERSION=$STABLE_CHANNEL_LATEST_TAG
LATEST_AGAVE_RELEASE_VERSION=$STABLE_CHANNEL_LATEST_TAG
fi
VERSION_FOR_DOCS_RS="${LATEST_SOLANA_RELEASE_VERSION:1}"
VERSION_FOR_DOCS_RS="${LATEST_AGAVE_RELEASE_VERSION:1}"

set -x
if [[ -n $CI ]]; then
sed --version || { echo "Error: Incompatible version of sed, use gnu sed"; exit 1; }
find src/ -name \*.md -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \;
find src/ -name \*.md -exec sed -i "s/LATEST_AGAVE_RELEASE_VERSION/$LATEST_AGAVE_RELEASE_VERSION/g" {} \;
find src/ -name \*.md -exec sed -i "s/VERSION_FOR_DOCS_RS/$VERSION_FOR_DOCS_RS/g" {} \;
fi