Skip to content

Commit

Permalink
Toph deploy docs ssh repo check (#12323)
Browse files Browse the repository at this point in the history
* Check for ssh github repo

because assumptions mostly.
more clear fail messages for an unsupported workflow
also removes the pipeline which now is redundant with local workflow

* WIP1

* working test

* More clear git test

* less weird characters for grep

* remove verbose for excho
  • Loading branch information
supertopher authored Apr 27, 2022
1 parent 7e1d95c commit 1413aca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/documentation.yml

This file was deleted.

11 changes: 11 additions & 0 deletions tools/bin/deploy_docusaurus
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ else
exit 1
fi

# if a string
if $(git remote get-url origin | grep --quiet "http"); then
set +o xtrace
echo -e "$red_text""This program requires a ssh-based github repo""$default_text"
echo -e "$red_text""https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account""$default_text"
echo -e "$red_text""You will need to change your remote to continue. Yell @topher for help""$default_text"
echo -e "$red_text""change your remote command:""$default_text"
echo -e "$red_text""git remote set-url origin git@github.com:airbytehq/airbyte.git""$default_text"
exit 1
fi


# ------------- Start Main
set +o xtrace
Expand Down

0 comments on commit 1413aca

Please sign in to comment.