Create RefreshCDN.yml

This commit is contained in:
小赵同学 authored and GitHub committed 2024-09-16 11:52:24 +08:00
1 parent 5471a845e6
commit 1249843313
1 file changed
+23
+23
View File
@@ -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