Skip to content

Commit

Permalink
🔧 自动生成资源列表
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Jul 9, 2024
1 parent d1fead5 commit cb5c726
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/update_data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update Resources

on:
push:
branches: [ main ]
paths:
- 'data/**'
- 'font/**'
- 'image/**'

workflow_dispatch:

jobs:
update:
name: Update Resources
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.10

- name: Update resources
run: |
python generate_data_list.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: |
'abscension_data_list.json'
'resources.zip'
36 changes: 36 additions & 0 deletions .github/workflows/update_img.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Update Images

on:
push:
branches: [ main ]
paths:
- 'image/**'

workflow_dispatch:

jobs:
update:
name: Update Images
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@master

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.10

- name: Update images
run: |
python generate_img_list.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: |
'abscension_img_list.json'

0 comments on commit cb5c726

Please sign in to comment.