diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..b649bdd --- /dev/null +++ b/.github/dependabot.yml @@ -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 + diff --git a/.github/workflows/dependency-updater.yml b/.github/workflows/dependency-updater.yml new file mode 100644 index 0000000..18bf69b --- /dev/null +++ b/.github/workflows/dependency-updater.yml @@ -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" +