Skip to content

Commit

Permalink
fix(ci): broaden IC repository match condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Jan 20, 2025
1 parent 9d8bfe9 commit 057cc26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/tools/repro-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 057cc26

Please sign in to comment.