forked from dss16694/WechatFp
-
Notifications
You must be signed in to change notification settings - Fork 126
36 lines (31 loc) · 1023 Bytes
/
cache_purge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Cache Purge
on:
workflow_dispatch:
workflow_run:
workflows:
- "Android CI"
- "Release Published"
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Purge User Cache
run: |
curl --location --request POST "${WEBDAV_ADDRESS%/*}/api/admin/user/del_cache?username=guest" \
--header "Authorization: $ALIST_TOKEN"
env:
ALIST_TOKEN: ${{secrets.ALIST_TOKEN}}
WEBDAV_ADDRESS: ${{secrets.WEBDAV_ADDRESS_R}}
shell: bash
- name: Purge List Cache
run: |
curl --location "${WEBDAV_ADDRESS%/*}/api/fs/list" \
--header "Authorization: $ALIST_TOKEN" \
--header 'Content-Type: application/json' \
--data '{ "path": "/download/fingerprintpay", "password": "", "page": 1, "per_page": 0, "refresh": true}'
env:
ALIST_TOKEN: ${{secrets.ALIST_TOKEN}}
WEBDAV_ADDRESS: ${{secrets.WEBDAV_ADDRESS_R}}
shell: bash