update requirements #279
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 requirements | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update-requirements: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- name: install pur | |
run: pip install pur | |
- name: Update requirements.txt | |
run: pur -r requirements.txt --skip mkdocs-encryptcontent-plugin | |
- name: install requirements | |
run: pip install -r requirements.txt | |
- name: commit the new change (if found) | |
continue-on-error: true | |
run: | | |
git config --global user.name 'github-actions' | |
git config --global user.email '[email protected]' | |
git commit -am "Update requirements" | |
git push |