Update source markdown in CI
This commit is contained in:
parent
29ef0916db
commit
554d36c74b
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
if [[ -n $CI_TAG ]]; then
|
if [[ -n $CI_TAG ]]; then
|
||||||
LATEST_SOLANA_RELEASE_VERSION=$CI_TAG
|
LATEST_SOLANA_RELEASE_VERSION=$CI_TAG
|
||||||
else
|
else
|
||||||
|
@ -12,3 +15,6 @@ fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
find html/ -name \*.html -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \;
|
find html/ -name \*.html -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \;
|
||||||
|
if [[ -n $CI ]]; then
|
||||||
|
find src/ -name \*.md -exec sed -i "s/LATEST_SOLANA_RELEASE_VERSION/$LATEST_SOLANA_RELEASE_VERSION/g" {} \;
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue