From 9d9733c3099d371a90839aa877f86e42ad28f0cd Mon Sep 17 00:00:00 2001 From: Erik Slovak Date: Fri, 9 Sep 2022 11:34:53 +0200 Subject: [PATCH] ci: update repo for boilerplate version scripts --- scripts/compare-boilerplate-version.sh | 4 ++-- scripts/update-boilerplate-version.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/compare-boilerplate-version.sh b/scripts/compare-boilerplate-version.sh index 3d61620..ef91d61 100755 --- a/scripts/compare-boilerplate-version.sh +++ b/scripts/compare-boilerplate-version.sh @@ -1,14 +1,14 @@ #!/usr/bin/env bash LATEST=$( - git ls-remote -h git@bitbucket.org:technology-studio/test-boilerplate-private-typescript.git | + git ls-remote -h git@github.com:technology-studio/test-boilerplate-typescript.git | grep refs/heads/main | awk '{ print $1 }' ) CURRENT=$(cat .boilerplate-version) echo "Latest version: $LATEST" echo "Current version: $CURRENT" if [ "$LATEST" != "$CURRENT" ]; then - echo "🚫 Boilerplate versions do not match! Check test-boilerplate-private-typescript repo for new changes." + echo "🚫 Boilerplate versions do not match! Check test-boilerplate-typescript repo for new changes." exit 1 fi echo "✅ Boilerplate versions match!" \ No newline at end of file diff --git a/scripts/update-boilerplate-version.sh b/scripts/update-boilerplate-version.sh index eb36f63..dba70d2 100755 --- a/scripts/update-boilerplate-version.sh +++ b/scripts/update-boilerplate-version.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash LATEST=$( - git ls-remote -h git@bitbucket.org:technology-studio/test-boilerplate-private-typescript.git | + git ls-remote -h git@github.com:technology-studio/test-boilerplate-typescript.git | grep refs/heads/main | awk '{ print $1 }' ) echo $LATEST > .boilerplate-version