Update Requirements #444
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: | |
repository_dispatch: | |
types: | |
- model-core-published | |
- db-published | |
schedule: | |
- cron: "0 2 * * 0" | |
push: | |
branches: | |
- develop | |
paths: | |
- "requirements/*.in" | |
- setup.py | |
jobs: | |
update-reqs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: update-reqs | |
run: | | |
pip install -U wheel setuptools pip-tools | |
git config --global user.email "[email protected]" | |
git config --global user.name "SweetRPG Requirement Updater" | |
git checkout ${{ github.head_ref || github.ref_name }} | |
scripts/update-requirements.sh | |
git add requirements/*.txt | |
git commit -m "Update requirements" | |
git push origin |