Skip to content

Commit

Permalink
. e Workflow to update all Python dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBazuzi authored May 14, 2024
1 parent f4f78d4 commit 366e467
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/Update Python Dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
schedule:
# Runs at 05:00 UTC every Monday
- cron: '0 5 * * 1'
workflow_dispatch:

jobs:
update-dependencies:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pip-tools
- name: Update dependencies
run: |
pip-compile --upgrade
- name: Configure Git
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
- name: Commit updates
run: |
git commit -am "- r Update Python dependencies" || echo "No changes to commit"
git push
- name: Create Pull Request
run: |
gh pr create -B main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 366e467

Please sign in to comment.