]>
Commit | Line | Data |
---|---|---|
f2a92ac6 DC |
1 | #!/bin/bash |
2 | ||
3 | #------------------------------------------------------------------------------ | |
4 | # Commits the data files if any have changed | |
5 | #------------------------------------------------------------------------------ | |
6 | ||
7 | if [ -z "$(git status --porcelain)" ]; then | |
8 | echo "Data did not change." | |
9 | else | |
10 | echo "Data changed!" | |
11 | ||
12 | # commit the result | |
13 | git add README.md | |
14 | git commit -m "docs: Update README" | |
15 | ||
16 | # push back to source control | |
17 | git push origin HEAD | |
18 | fi |