Skip to content

Commit

Permalink
ci: update repo for boilerplate version scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-slovak committed Sep 9, 2022
1 parent 2f842ab commit 9d9733c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/compare-boilerplate-version.sh
Original file line number Diff line number Diff line change
@@ -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!"
2 changes: 1 addition & 1 deletion scripts/update-boilerplate-version.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9d9733c

Please sign in to comment.