We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab75044 commit 34e5de4Copy full SHA for 34e5de4
1 file changed
scripts/update-built-docs.sh
@@ -14,18 +14,21 @@ copyBuildSources() {
14
for file in $(git ls-tree -r --name-only main | grep -F -- ".github/api-docs"); do
15
echo "Copying: $file";
16
git checkout main -- $file
17
+ cp -v "$file" ./api-docs/
18
done
19
- # Restore files
20
- mv -v .github/api-docs/*.php ./api-docs/
21
- mv -v .github/api-docs/index.html ./api-docs/
22
-
23
if [ ! -z "$(git status --porcelain)" ]; then
24
git add ./api-docs/*.php ./api-docs/index.html
25
git commit -m "Update api-docs configurations"
26
git push
27
fi
28
+ # Clean the workspace
+ git reset --hard
+ git clean -d -f
29
+
30
+ git status
31
32
git checkout - > /dev/null
33
}
34
0 commit comments