Skip to content

Download and Save File #1224

Download and Save File

Download and Save File #1224

Workflow file for this run

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'