Create RefreshCDN.yml
This commit is contained in:
1 parent
d23b703e5f
commit
ce7b8b3a23
1 file changed
+23
@@ -0,0 +1,23 @@
|
|||||||
|
name: Refresh CDN
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
refresh-cdn:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: 检出代码
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: 安装 Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: 安装依赖
|
||||||
|
run: pip install requests
|
||||||
|
- name: 等待源站部署
|
||||||
|
run: sleep 1m # 这里用了个笨办法,等待 1 分钟后进行刷新
|
||||||
|
- name: 刷新 CDN
|
||||||
|
run: python RefreshCDN.py
|
||||||
Reference in new issue
Block a user