Skip to content

update requirements #281

update requirements

update requirements #281

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