新增 require 方法 #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: Generate Directory JSON | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "plugin_market/**" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "plugin_market/**" | |
workflow_dispatch: {} | |
jobs: | |
generate_json: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.12"] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' # 你想要使用的 Python 版本 | |
- name: Generate JSON | |
run: python plugin_market/get_directory.py | |
- name: Submit Changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
default_author: github_actions | |
message: '[AUTO] Generate Directory JSON' | |
add: 'plugin_market/directory.json' |