-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script for checking release branch
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
TAG=`git tag --points-at HEAD` | ||
SET_SENTRY_DSN=$SENTRY_DSN | ||
|
||
# Release should be tagged | ||
if [[ -z $TAG ]]; then | ||
echo "Release is not tagged." | ||
exit 1 | ||
fi | ||
|
||
# Sentry DSN should be set | ||
if [[ -z $SET_SENTRY_DSN ]]; then | ||
echo "Sentry DSN is not set." | ||
exit 1 | ||
fi |