Skip to content

Commit

Permalink
Create update-requirements.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jnton authored Apr 7, 2024
1 parent e7c03e1 commit 2fea1fc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at 00:00 UTC

jobs:
update-requirements:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install pip-tools
run: pip install pip-tools
- name: Compile the new requirements.txt
run: pip-compile requirements.in
- name: Commit and push if changes are detected
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add requirements.txt
git commit -m "Update requirements.txt" -a || echo "No changes to commit"
git push

0 comments on commit 2fea1fc

Please sign in to comment.