mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
Improve preview cleanup interpolation
This commit is contained in:
parent
f28fd40a78
commit
12547ba0fe
1 changed files with 3 additions and 1 deletions
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
|
||||
|
|
Loading…
Reference in a new issue