Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da6deff
commit 018e151
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# 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 | ||
|
||
# commit and push if we have a change | ||
if [[ -z $(git status -s -- docs/*) ]]; then | ||
echo "no changes to commit in the docs directory" | ||
exit 0 | ||
fi | ||
|
||
echo "committing updated docs" | ||
|
||
git config user.name "lazydocker bot" | ||
git config user.email "jessedduffield@gmail.com" | ||
|
||
git add docs/* | ||
git commit -m "update docs" | ||
git push -u origin HEAD |