BangBang93Hub/.github/workflows/updatecache.yml

23 lines
659 B
YAML
Raw Normal View History

2024-05-04 13:10:06 +00:00
name: UpdateCache
on:
push:
branches: [ main ] # 触发分支,根据需要可更改为'master'或其他分支
jobs:
notify:
runs-on: ubuntu-latest # 使用Ubuntu环境执行
steps:
2024-05-31 10:54:32 +00:00
- name: download file
2024-05-31 10:50:55 +00:00
run: |
2024-05-31 10:54:32 +00:00
wget https://f005.backblazeb2.com/file/tinyst-bucket/app.py
2024-05-31 10:50:55 +00:00
- name: Set up Python
uses: actions/setup-python@v2
with:
2024-05-31 10:55:07 +00:00
python-version: 3.12.2
2024-05-31 10:50:55 +00:00
- name: install requests
run: |
python -m pip install --upgrade pip
python -m pip install requests
- name: referesh cache
run: |
python3 ./app.py