We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c9a70 commit 0320be1Copy full SHA for 0320be1
1 file changed
scripts/update-built-docs.sh
@@ -2,6 +2,9 @@
2
set -eu
3
4
copyBuildSources() {
5
+ # Change branch
6
+ git checkout gh-pages > /dev/null
7
+
8
# Remove config files
9
rm -v ./api-docs/*.php
10
# Remove index file
@@ -11,6 +14,12 @@ copyBuildSources() {
11
14
# Restore files
12
15
mv -v .github/api-docs/*.php ./api-docs/
13
16
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
23
}
24
25
doDocsUpdate() {
0 commit comments