diff --git a/.github/workflows/gh-pages-cleanup.yaml b/.github/workflows/gh-pages-cleanup.yaml index b9ca7a9..5047ebe 100644 --- a/.github/workflows/gh-pages-cleanup.yaml +++ b/.github/workflows/gh-pages-cleanup.yaml @@ -13,17 +13,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v3.5.3 - - run: | - echo GITHUB_ACTION: $GITHUB_ACTION - echo GITHUB_WORKFLOW: $GITHUB_WORKFLOW - echo GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME - echo GITHUB_EVENT_PATH: $GITHUB_EVENT_PATH - cat $GITHUB_EVENT_PATH - - name: Delete directory in gh-pages if: github.event.ref_type == 'branch' run: | - branchName=$(echo "${{ github.ref }}" | sed -e 's,^refs/heads/,,') + branchName=$(echo "${{ github.event.ref }}" | sed -e 's,^refs/heads/,,') if [ -d "./.unlighthouse/${branchName}" ]; then git fetch --all git checkout gh-pages