imp: 更新依赖 (#247) #27
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: Up requirement | |
on: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install pipreqs | |
run: | | |
pip install pipreqs | |
- name: Export requirements.txt | |
run: | | |
pipreqs . --encoding=utf8 --force | |
- name: Upload requirements.txt | |
uses: EndBug/[email protected] | |
with: | |
author_name: github-actions[bot] | |
author_email: github-actions[bot]@users.noreply.github.com | |
message: ':wrench: 自动更新requirements' | |
add: | | |
'requirements.txt' |