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

chore: pass runtime version as arg #43

Merged
merged 1 commit into from
Nov 28, 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
11 changes: 9 additions & 2 deletions updateRuntimeVersions.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
#!/usr/bin/env bash

# USAGE:
# > ./updateRuntimeVersions.sh 1.0.31
# or
# > RUNTIME_VERSION=1.0.31 ./updateRuntimeVersions.sh

# this script is meant to be used after a new Runtime version is out
# to facilitate the update of all the places where we usually depend on the latest version

# provide the new Runtime version you want the project to be updated to
if [[ -z "$RUNTIME_VERSION" ]]; then
echo "Must provide RUNTIME_VERSION in environment" 1>&2

if [[ $1 ]];then
RUNTIME_VERSION=$1
fi

if [[ -z "$RUNTIME_VERSION" ]]; then
echo "Must provide RUNTIME_VERSION in environment or pass it as an argument" 1>&2
exit 1
fi

Expand Down