Skip to content

Commit

Permalink
Update latest release variable for agave docs (#3220)
Browse files Browse the repository at this point in the history
Update latest release variable for agave
  • Loading branch information
willhickey authored Oct 18, 2024
1 parent fd7eb75 commit df97398
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit df97398

Please sign in to comment.