refactor: Remove debug info and fix ref

This commit is contained in:
Bart van der Braak 2023-06-12 01:44:52 +02:00
parent def6082cc1
commit 81d42cce06

View file

@ -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