Skip to content

Commit

Permalink
chore: use basedir
Browse files Browse the repository at this point in the history
  • Loading branch information
error418 committed Mar 11, 2020
1 parent 33c39a7 commit 6a2c1df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion util/update-module-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

BASEDIR=$(dirname "$0")

VALUES_YAML=$BASEDIR/../helm/swingletree/values.yaml

function addCommit {
CMESSAGE="feat($1): update component from \`$2\` to \`$3\` [view changes](https://github.com/swingletree-oss/$1/compare/v$2...v$3)"
echo " > adding commit: $CMESSAGE"

git add $VALUES_YAML
git commit -m "$CMESSAGE"
}

Expand All @@ -17,7 +21,7 @@ function currentRelease {
}

function upgrade {
sed -i -r 's/^(\s*version:\s*)([[:digit:]]+\.?)+(\s*#'$1'_VERSION)$/\1'$2'\3/gm' $BASEDIR/../helm/swingletree/values.yaml
sed -i -r 's/^(\s*version:\s*)([[:digit:]]+\.?)+(\s*#'$1'_VERSION)$/\1'$2'\3/gm' $VALUES_YAML
}

COMPONENTS=(
Expand Down

0 comments on commit 6a2c1df

Please sign in to comment.