/.github/{scripts,workflows}: fix workflows for new release job

This commit is contained in:
coffeegoddd
2024-02-19 10:45:41 -08:00
parent 120697d983
commit d73e74a25b
4 changed files with 25 additions and 9 deletions
@@ -2,18 +2,19 @@
set -e
if [ "$#" -lt 5 ]; then
echo "Usage: ./get-job-json.sh <jobname> <version> <timePrefix> <actorPrefix> <format> <initBigRepo> <nomsBinFormat>"
if [ "$#" -lt 6 ]; then
echo "Usage: ./get-job-json.sh <jobname> <version> <futureVersion> <timePrefix> <actorPrefix> <format> <initBigRepo> <nomsBinFormat>"
exit 1
fi
jobName="$1"
version="$2"
timePrefix="$3"
actorPrefix="$4"
format="$5"
initBigRepo="$6"
nomsBinFormat="$7"
futureVersion="$3"
timePrefix="$4"
actorPrefix="$5"
format="$6"
initBigRepo="$7"
nomsBinFormat="$8"
if [ -n "$initBigRepo" ]; then
initBigRepo="\"--init-big-repo=$initBigRepo\","
@@ -63,7 +64,8 @@ echo '
"args": [
"--schema=/schema.sql",
"--useDoltHubLuaScriptsRepo",
"--profile-version='$version'",
"--profile-version='"$version"'",
"--future-version='"$futureVersion"'"
"--bucket=performance-benchmarking-github-actions-results",
"--region=us-west-2",
"--results-dir='$timePrefix'",
@@ -22,6 +22,10 @@ if [ -n "$PROFILE" ]; then
echo "Must set FROM_VERSION"
exit 1
fi
if [ -z "$FUTURE_VERSION" ]; then
echo "Setting FUTURE_VERSION to $FROM_VERSION"
export FUTURE_VERSION="$FROM_VERSION"
fi
echo "Setting profile version to $FROM_VERSION"
else
@@ -92,6 +96,7 @@ source \
"$TEMPLATE_SCRIPT" \
"$jobname" \
"$FROM_VERSION" \
"$FUTURE_VERSION" \
"$timeprefix" \
"$actorprefix" \
"$format" \