Skip to content

Commit

Permalink
v2.0: Update latest release variable for agave docs (backport of #322…
Browse files Browse the repository at this point in the history
…0) (#3221)

Update latest release variable for agave docs (#3220)

Update latest release variable for agave

(cherry picked from commit df97398)

Co-authored-by: Will Hickey <[email protected]>
  • Loading branch information
mergify[bot] and willhickey authored Oct 21, 2024
1 parent 135742f commit aa44dc8
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 aa44dc8

Please sign in to comment.