chore(docs): use GitHub variables

This commit is contained in:
Daniel Sogl 2020-06-11 19:27:38 +02:00 committed by GitHub
parent aa535844b0
commit 030a78fc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,11 +31,11 @@ function run {
if [ $CHANGED -eq 0 ]; if [ $CHANGED -eq 0 ];
then then
echo "-- No changes detected for the following commit, docs not updated." echo "-- No changes detected for the following commit, docs not updated."
echo "https://github.com/ionic-team/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1" echo "https://github.com/ionic-team/$GITHUB_PROJECT_REPONAME/commit/$GITHUB_SHA1"
else else
git config --global user.email "hi@ionicframework.com" git config --global user.email "hi@ionicframework.com"
git config --global user.name "Ionitron" git config --global user.name "Ionitron"
git commit -am "Automated build of native docs ionic-team/$CIRCLE_PROJECT_REPONAME@$CIRCLE_SHA1" git commit -am "Automated build of native docs ionic-team/$GITHUB_PROJECT_REPONAME@$GITHUB_SHA1"
# in case a different commit was pushed to ionic-site during doc/demo gen, # in case a different commit was pushed to ionic-site during doc/demo gen,
# try to rebase around it before pushing # try to rebase around it before pushing
git fetch git fetch