Merge pull request #36 from bartvdbraak/refactor/dependabot-reviewers

fix: Final fix to match branch as directory
This commit is contained in:
Bart van der Braak 2023-06-12 02:51:23 +02:00 committed by GitHub
commit ce9787c511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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