Skip to content

Commit

Permalink
checkout latest master before updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Sep 7, 2019
1 parent 54609a5 commit 42e029c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .circleci/update_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

set -ex

git config user.name "lazydocker bot"
git config user.email "[email protected]"

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
Expand All @@ -14,11 +20,6 @@ fi

echo "committing updated docs"

git config user.name "lazydocker bot"
git config user.email "[email protected]"

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

0 comments on commit 42e029c

Please sign in to comment.