From 42e029c45ea6e95de490e8233f155c9d7e7b4dc5 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 7 Sep 2019 19:08:05 +1000 Subject: [PATCH] checkout latest master before updating docs --- .circleci/update_docs.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.circleci/update_docs.sh b/.circleci/update_docs.sh index 374213b2..d5e646dc 100755 --- a/.circleci/update_docs.sh +++ b/.circleci/update_docs.sh @@ -2,6 +2,12 @@ set -ex +git config user.name "lazydocker bot" +git config user.email "jessedduffield@gmail.com" + +git checkout master # just making sure we're up to date +git pull + # see if we have a new cheatsheet # if other docs end up being generated automatically we can chuck in the relevant scripts here go run scripts/generate_cheatsheet.go @@ -14,11 +20,6 @@ fi echo "committing updated docs" -git config user.name "lazydocker bot" -git config user.email "jessedduffield@gmail.com" - -git checkout master # just making sure we're up to date -git pull git add docs/* git commit -m "update docs" git push -u origin master \ No newline at end of file