Merge pull request #483 from ScrapeGraphAI/auto-requirements-action
Some checks failed
Release / Build (push) Has been cancelled
Release / Release (push) Has been cancelled

chore(ci): set up workflow for requirements auto-update
This commit is contained in:
Marco Vinciguerra 2024-07-22 14:45:53 +02:00 committed by GitHub
commit 72f18d1841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

26
.github/update-requirements.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Update requirements
on:
push:
paths:
- 'pyproject.toml'
- '.github/workflows/update-requirements.yml'
jobs:
update:
name: Update requirements
runs-on: ubuntu-latest
steps:
- name: Install the latest version of rye
uses: eifinger/setup-rye@v3
- name: Build app
run: rye run update-requirements
commit:
name: Commit changes
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "ci: update requirements.txt [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}