Skip to content

Commit ed0676f

Browse files
authored
Change git worktree command to use --orphan
Signed-off-by: TheCommCraft <79996518+TheCommCraft@users.noreply.github.com>
1 parent 00f33e9 commit ed0676f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy-website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy the scratchattach website
33
on:
44
push:
55
branches:
6-
- main # ✅ only run on this branch
6+
- main
77
paths:
88
- 'website/**'
99
workflow_dispatch:
@@ -17,7 +17,7 @@ jobs:
1717
- name: Move website directory
1818
run: |
1919
git checkout main
20-
git worktree add /tmp/website website
20+
git worktree add /tmp/website --orphan website
2121
cd /tmp/website
2222
rm -rf *
2323
cp -r ../../website/* .

0 commit comments

Comments
 (0)