-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update repo for boilerplate version scripts
- Loading branch information
1 parent
2f842ab
commit 9d9733c
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters