forked from abner/for-legacy-web
Improve preview cleanup interpolation
This commit is contained in:
4
.github/workflows/preview_cleanup.yml
vendored
4
.github/workflows/preview_cleanup.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user