We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67f0dda commit ab75044Copy full SHA for ab75044
1 file changed
scripts/update-built-docs.sh
@@ -9,8 +9,13 @@ copyBuildSources() {
9
rm -v ./api-docs/*.php
10
# Remove index file
11
rm -v ./api-docs/index.html
12
+
13
# Restore from main branch
- git ls-tree -r --name-only main | grep -F -- ".github/api-docs" | xargs git checkout main --
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
+ done
18
19
# Restore files
20
mv -v .github/api-docs/*.php ./api-docs/
21
mv -v .github/api-docs/index.html ./api-docs/
0 commit comments