苏末了 #376
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: Generator | |
on: | |
issues: | |
watch: | |
types: [started] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Python #安装python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install requirements #安装requests | |
run: | | |
pip install -r requirements.txt | |
- name: Update links #更新 | |
run: | | |
python generator/main.py | |
- name: Commit & Push | |
uses: action-x/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
push-branch: 'output' | |
force-push: 'true' | |
commit-message: 'Generate Json' | |
name: github-actions[bot] | |
email: github-actions[bot]@noreply.github.com |