From e4a8382a15a4e406292f50b0c3e12577c9aaf584 Mon Sep 17 00:00:00 2001 From: GuillaumeFalourd Date: Fri, 7 Jan 2022 09:31:11 -0300 Subject: [PATCH] update creating branch section Signed-off-by: GuillaumeFalourd --- action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ac06b9f..f81c62f 100644 --- a/action.yml +++ b/action.yml @@ -116,7 +116,9 @@ runs: HOSTNAME=${BASH_REMATCH[3]} DESTINATION_OWNER=${BASH_REMATCH[4]} DESTINATION_REPOSITORY=${BASH_REMATCH[5]} - DESTINATION_REPOSITORY=${DESTINATION_REPOSITORY//.git/ } + if [[ $DESTINATION_REPOSITORY == *'.git'* ]] && [[ $DESTINATION_REPOSITORY != *'.github.io'* ]]; then + DESTINATION_REPOSITORY=${DESTINATION_REPOSITORY//.git/ } + fi CLONE_DIRECTORY=$(mktemp -d)