Update source markdown in CI

This commit is contained in:
Michael Vines 2020-03-12 14:34:28 -07:00
parent 29ef0916db
commit 554d36c74b
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 6 additions and 0 deletions

View File

@ -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