Update RefreshCDN.yml
This commit is contained in:
1 parent
3fd9f8b85c
commit
e5b076c8fb
1 file changed
+8
@@ -11,13 +11,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: 检出代码
|
- name: 检出代码
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: 安装 Python
|
- name: 安装 Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: 安装依赖
|
- name: 安装依赖
|
||||||
run: pip install requests
|
run: pip install requests
|
||||||
|
|
||||||
- name: 等待源站部署
|
- name: 等待源站部署
|
||||||
run: sleep 1m # 这里用了个笨办法,等待 1 分钟后进行刷新
|
run: sleep 1m # 这里用了个笨办法,等待 1 分钟后进行刷新
|
||||||
|
|
||||||
- name: 刷新 CDN
|
- name: 刷新 CDN
|
||||||
run: python RefreshCDN.py
|
run: python RefreshCDN.py
|
||||||
|
env:
|
||||||
|
DOGECLOUD_ACCESS_KEY: ${{ secrets.DOGECLOUD_ACCESS_KEY }}
|
||||||
|
DOGECLOUD_SECRET_KEY: ${{ secrets.DOGECLOUD_SECRET_KEY }}
|
||||||
|
CDN_URL_LIST: ${{ secrets.CDN_URL_LIST }}
|
||||||
Reference in new issue
Block a user