mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-01 21:00:48 +08:00
Merge pull request #483 from ScrapeGraphAI/auto-requirements-action
chore(ci): set up workflow for requirements auto-update
This commit is contained in:
commit
72f18d1841
26
.github/update-requirements.yml
vendored
Normal file
26
.github/update-requirements.yml
vendored
Normal 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 }}
|
||||
Loading…
Reference in New Issue
Block a user