Skip to content

Commit 34e5de4

Browse files
committed
Copy from source
1 parent ab75044 commit 34e5de4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

scripts/update-built-docs.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ copyBuildSources() {
1414
for file in $(git ls-tree -r --name-only main | grep -F -- ".github/api-docs"); do
1515
echo "Copying: $file";
1616
git checkout main -- $file
17+
cp -v "$file" ./api-docs/
1718
done
1819

19-
# Restore files
20-
mv -v .github/api-docs/*.php ./api-docs/
21-
mv -v .github/api-docs/index.html ./api-docs/
22-
2320
if [ ! -z "$(git status --porcelain)" ]; then
2421
git add ./api-docs/*.php ./api-docs/index.html
2522
git commit -m "Update api-docs configurations"
2623
git push
2724
fi
2825

26+
# Clean the workspace
27+
git reset --hard
28+
git clean -d -f
29+
30+
git status
31+
2932
git checkout - > /dev/null
3033
}
3134

0 commit comments

Comments
 (0)