Download and Save File #1229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Download and Save File | |
on: | |
workflow_run: | |
workflows: ["Douban Get Json"] | |
types: | |
- completed | |
workflow_dispatch: | |
inputs: | |
unconditional-invoking: | |
description: '执行下载图片' | |
type: boolean | |
required: true | |
default: true | |
jobs: | |
download-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' # 替换为你要使用的 Python 版本 | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Run Python Script | |
run: | | |
python douban.py # 替换为你的 Python 脚本文件名 | |
ls images/douban | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'chore: update images data' | |
add: './images/douban' |