Skip to content

Commit cb4efba

Browse files
committed
Ensure docs repos are on main branch after clone
1 parent 975cbbe commit cb4efba

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/bonsai-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
git config --global user.name 'IfcOpenBot'
2222
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
2323
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/bonsaibim_org_docs
24+
git -C bonsaibim_org_docs checkout -B main
2425
# Delete old content but preserve CNAME for GitHub Pages
2526
find bonsaibim_org_docs -mindepth 1 -not -name "CNAME" -delete
2627
cp -r _build/html/* bonsaibim_org_docs/

.github/workflows/ifcopenshell-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
git config --global user.name 'IfcOpenBot'
2323
git config --global user.email 'IfcOpenBot@users.noreply.github.com'
2424
git clone https://${{ secrets.GH_APIKEY }}@github.com/IfcOpenShell/ifcopenshell_org_docs
25+
git -C ifcopenshell_org_docs checkout -B main
2526
# Delete old content but preserve CNAME for GitHub Pages
2627
find ifcopenshell_org_docs -mindepth 1 -not -name "CNAME" -delete
2728
cp -r _build/html/* ifcopenshell_org_docs/

0 commit comments

Comments
 (0)