We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f325741 commit 4f6371cCopy full SHA for 4f6371c
1 file changed
scripts/update-built-docs.sh
@@ -10,20 +10,17 @@ copyBuildSources() {
10
# Remove index file
11
rm -v ./api-docs/index.html
12
13
- # Clean the workspace
14
- git reset --hard
15
- git clean -d -f
16
-
17
# Restore from main branch
18
for file in $(git ls-tree -r --name-only main | grep -F -- ".github/api-docs"); do
19
echo "Copying: $file";
20
- git checkout main -- $file
+ git checkout main -- "$file"
+ git restore --staged "$file"
21
mv -v "$file" ./api-docs/
22
done
23
24
if [ ! -z "$(git status --porcelain)" ]; then
25
git status
26
- git add -A
+ git add ./api-docs/*.php ./api-docs/index.html
27
28
git commit -m "Update api-docs configurations"
29
git push
0 commit comments