Skip to content

Commit c271f9d

Browse files
committed
add workflow to delete PR preview from server storage
1 parent 7cbd102 commit c271f9d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Delete PR preview
2+
on:
3+
pull_request_target:
4+
branches: ['main']
5+
types: ['closed']
6+
7+
jobs:
8+
preview_delete:
9+
name: Delete preview
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: delete-preview
13+
run: curl --fail -X DELETE -H "Authorization: Bearer ${{ secrets.UPLOAD_TOKEN }}" https://docs.tds.cscs.ch/upload?path={{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)