From 107b7764d5e2f27fb0cea72cd8a9c10c532aa588 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 12 Jun 2023 02:50:50 +0200 Subject: [PATCH] fix: Final fix to match branch as directory --- .github/workflows/gh-pages-cleanup.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages-cleanup.yaml b/.github/workflows/gh-pages-cleanup.yaml index 0f82a50..b107bf5 100644 --- a/.github/workflows/gh-pages-cleanup.yaml +++ b/.github/workflows/gh-pages-cleanup.yaml @@ -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