Skip to content

Merge branch 'master' of github.com:jiangdengke/images #9

Merge branch 'master' of github.com:jiangdengke/images

Merge branch 'master' of github.com:jiangdengke/images #9

Workflow file for this run

name: 自动生成图片预览到README
permissions:
contents: write
on:
push:
paths:
- 'images/**'
- '.github/workflows/update-readme.yml'
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: 检出代码
uses: actions/checkout@v4
- name: 设置Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: 直接生成 README.md
run: |
python scripts/gen_images_md.py
- name: 提交并推送更改
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "自动更新图片预览"
branch: ${{ github.ref }}