fix: Final fix to match branch as directory

This commit is contained in:
Bart van der Braak 2023-06-12 02:50:50 +02:00
parent 8d27374774
commit e6d1b363e9

View file

@ -18,9 +18,8 @@ jobs:
run: |
git fetch --all
git checkout gh-pages
git pull
branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,')
if [ -d "./.unlighthouse/${branchName}" ]; then
if [ -d "./${branchName}" ]; then
git rm -rf --ignore-unmatch "${branchName}"
git commit -m "Cleanup directory for deleted branch ${branchName}"
git push origin gh-pages