From 3c3fe46f3d976b67f6b78568dced5b29c5994ffa Mon Sep 17 00:00:00 2001 From: Nicconike <38905025+Nicconike@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:24:20 +0530 Subject: [PATCH] chore: update dependabot.yml --- .github/dependabot.yml | 17 +++++++++++-- .github/workflows/dependencies.yml | 40 ------------------------------ 2 files changed, 15 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/dependencies.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 12354ea..eafe069 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,17 +3,24 @@ version: 2 updates: - package-ecosystem: "pip" - directory: "/" + directory: "requirements.txt" schedule: interval: "weekly" commit-message: - prefix: "build" + prefix: "chore" include: "scope" labels: - dependencies - dependabot rebase-strategy: auto versioning-strategy: "increase-if-necessary" + open-pull-requests-limit: 10 + groups: + python-packages: + patterns: + - "*" + reviewers: + - "nicconike" - package-ecosystem: "github-actions" directory: "/" @@ -25,6 +32,9 @@ updates: - dependencies - dependabot rebase-strategy: auto + open-pull-requests-limit: 10 + reviewers: + - "nicconike" groups: github-actions: patterns: @@ -41,3 +51,6 @@ updates: - dependencies - dependabot rebase-strategy: auto + open-pull-requests-limit: 10 + reviewers: + - "nicconike" diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml deleted file mode 100644 index 14772a0..0000000 --- a/.github/workflows/dependencies.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Dependency Upgrade - -on: - schedule: - # Runs every Monday at 12AM IST (UTC+5:30) - - cron: "30 18 * * 0" - push: - branches: [ "master" ] - paths: - - '.github/workflows/dependencies.yml' - workflow_dispatch: - -jobs: - upgrade: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' - cache: 'pip' - - - name: Upgrade dependencies - run: | - python -m venv venv - source venv/bin/activate - pip install --upgrade pip - pip install --upgrade -r requirements.txt - pipdeptree | grep -P '^\w' | awk '{print $1}' | sed 's/==.*//' > requirements.txt - - - name: Configure Git & Commit Changes - run: | - git config --global --add safe.directory /__w/Steam-Stats/Steam-Stats - git config --global user.email "action@github.com" - git config --global user.name "GitHub Action" - git add . - git commit -m "Upgrade Python Dependencies\n\nCo-authored-by: Nicconike <38905025+Nicconike@users.noreply.github.com>"