Skip to content

Commit 0320be1

Browse files
committed
Also commit the config changes
1 parent 35c9a70 commit 0320be1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/update-built-docs.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -eu
33

44
copyBuildSources() {
5+
# Change branch
6+
git checkout gh-pages > /dev/null
7+
58
# Remove config files
69
rm -v ./api-docs/*.php
710
# Remove index file
@@ -11,6 +14,12 @@ copyBuildSources() {
1114
# Restore files
1215
mv -v .github/api-docs/*.php ./api-docs/
1316
mv -v .github/api-docs/index.html ./api-docs/
17+
18+
if [ ! -z "$(git status --porcelain)" ]; then
19+
git commit -m "Update api-docs configurations"
20+
fi
21+
22+
git checkout - > /dev/null
1423
}
1524

1625
doDocsUpdate() {

0 commit comments

Comments
 (0)