File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,11 @@ jobs:
2525 ref : gh-pages
2626 - name : Delete preview and history + push changes
2727 run : |
28- preview_directory=previews/PR${{ github.event.number }}
29- if [[ -d "${preview_directory}" ]]; then
28+ if [[ -d previews ]]; then
3029 git config user.name "${{github.actor}}"
3130 git config user.email "${{github.actor_id}}+${{github.actor}}@users.noreply.github.com"
32- git rm -rf "${preview_directory}"
33- git commit -m 'Cleanup docs for PR #${{ github.event.number }} '
31+ git rm -rf previews/
32+ git commit -m 'Delete previews directory '
3433 git branch gh-pages-new $(echo "Delete history" | git commit-tree HEAD^{tree})
35- git push --force origin gh-pages-new:gh-pages
34+ git push --force-with-lease origin gh-pages-new:gh-pages
3635 fi
You can’t perform that action at this time.
0 commit comments