mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -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:
|
clean:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.label.name == 'use-preview'
|
if: github.event.label.name == 'use-preview'
|
||||||
|
env:
|
||||||
|
BASE: refs/pull/${{ github.event.pull_request.number }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -19,7 +21,7 @@ jobs:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: clean previews
|
- name: clean previews
|
||||||
run: 'rm -rf "./refs/pull/${{ github.event.pull_request.number }}"'
|
run: rm -rf "$BASE"
|
||||||
|
|
||||||
- name: publish cleaned previews
|
- name: publish cleaned previews
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
uses: JamesIves/github-pages-deploy-action@4.1.5
|
||||||
|
|
Loading…
Reference in a new issue