Skip to content

Commit

Permalink
Added Dependabot auto-merge and GitHub Actions for dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-ai committed Mar 2, 2025
1 parent a232d52 commit 162789b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
assignees:
- "gs-ai" # Replace with your actual GitHub username
labels:
- "dependencies"
allow:
- dependency-name: "configobj"
versioning-strategy: increase

32 changes: 32 additions & 0 deletions .github/workflows/dependency-updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Auto Dependency Update

on:
schedule:
- cron: '0 3 * * 1' # Runs every Monday at 3 AM UTC
workflow_dispatch: # Allows manual triggering

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Upgrade Dependencies
run: |
pip install --upgrade pip
pip install --upgrade -r requirements.txt
- name: Commit & Push Changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add requirements.txt
git commit -m "Auto-updated dependencies [skip ci]" || echo "No changes to commit"
git push origin main || echo "No changes to push"

0 comments on commit 162789b

Please sign in to comment.