1.0fix #7
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: Update File Index | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
update: | |
name: Update File Index | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@master | |
- name: Setup python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.10" | |
- name: Run python script | |
run: | | |
cd .github | |
python -m pip install imagesize | |
python update_index.py | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: github-actions[bot] | |
author_email: github-actions[bot]@users.noreply.github.com | |
message: ':wrench: 自动更新文件索引' | |
add: | | |
'path.json' | |
'files.json' |