Skip to content

Commit 90fdd21

Browse files
authored
Do not force push in doc preview cleanup (#2794)
1 parent 5161836 commit 90fdd21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ClearPreview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
git config user.email "[email protected]"
2020
git rm -rf "previews/PR$PRNUM"
2121
git commit -m "delete preview"
22-
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
23-
git push --force origin gh-pages-new:gh-pages
22+
git push origin gh-pages:gh-pages
2423
fi
2524
env:
2625
PRNUM: ${{ github.event.number }}

0 commit comments

Comments
 (0)