-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): broaden IC repository match condition
- Loading branch information
1 parent
9d8bfe9
commit 057cc26
Showing
1 changed file
with
3 additions
and
2 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 |
---|---|---|
|
@@ -107,10 +107,11 @@ check_ic_repo() { | |
git_remote="$(git config --get remote.origin.url)" | ||
|
||
log_debug "Check the repository is an IC repository" | ||
# Possible values of `git_remote` are listed below | ||
# Some of the possible values of `git_remote` that should be matched: | ||
# [email protected]:dfinity/ic.git, https://github.com/dfinity/ic.git | ||
# [email protected]:dfinity/ic-private.git, https://github.com/dfinity/ic-private.git | ||
if [[ "$git_remote" == *dfinity/ic* ]]; then | ||
# [email protected]:<other-org>/ic.git, https://github.com/<other-org>/ic.git | ||
if [[ "$git_remote" == */ic* ]]; then | ||
log_debug "Inside IC repository" | ||
else | ||
error "When not specifying any option please run this script inside an IC git repository" | ||
|