Improve preview cleanup interpolation

This commit is contained in:
brecert 2021-09-14 00:03:58 -04:00
parent f28fd40a78
commit 12547ba0fe
No known key found for this signature in database
GPG key ID: 1B2E56B9EC985B96

View file

@ -11,6 +11,8 @@ jobs:
clean:
runs-on: ubuntu-latest
if: github.event.label.name == 'use-preview'
env:
BASE: refs/pull/${{ github.event.pull_request.number }}
steps:
- uses: actions/checkout@v2
@ -19,7 +21,7 @@ jobs:
persist-credentials: false
- name: clean previews
run: 'rm -rf "./refs/pull/${{ github.event.pull_request.number }}"'
run: rm -rf "$BASE"
- name: publish cleaned previews
uses: JamesIves/github-pages-deploy-action@4.1.5