-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Dependabot auto-merge and GitHub Actions for dependency updates
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||