Update #720
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 | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: fregante/setup-git-user@v1 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Update Requirements.txt | |
run: | | |
python -m venv venv | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install -r rsserpent.txt | |
pip install uvicorn | |
pip freeze > requirements.txt | |
- name: Push Updates | |
run: | | |
git add . | |
git diff-index --quiet HEAD || git commit -m "update requirements.txt (${{ github.sha }})" | |
git push |