mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-04 21:00:36 +08:00
chore(ci): set up workflow for requirements auto-update
This commit is contained in:
parent
3289c7bf5e
commit
295fc28ceb
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