diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7863596214b..233d0620ded 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,42 @@ updates: interval: "weekly" day: "saturday" rebase-strategy: "disabled" + labels: ["autoupdate"] + groups: + github-actions: + patterns: ["*"] + + # Note: only "==" pins are bumped; ">=" floors and dev pre-releases are not + - package-ecosystem: "pip" + directory: "/environments" + schedule: + interval: "weekly" + day: "saturday" + rebase-strategy: "disabled" + labels: ["autoupdate"] + groups: + pip: + patterns: ["*"] + + # Handles plain conda-forge "pkg=X.Y.Z" pins and pip: sections + - package-ecosystem: "conda" + directory: "/environments" + schedule: + interval: "weekly" + day: "saturday" + rebase-strategy: "disabled" + labels: ["autoupdate"] + groups: + conda: + patterns: ["*"] + + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + interval: "weekly" + day: "saturday" + rebase-strategy: "disabled" + labels: ["autoupdate"] + groups: + pre-commit: + patterns: ["*"] diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml deleted file mode 100644 index b84c3fc2f61..00000000000 --- a/.github/workflows/pre-commit-autoupdate.yml +++ /dev/null @@ -1,50 +0,0 @@ -name: Autoupdate pre-commit - -on: - # To be able to be triggered manually - workflow_dispatch: - # To guarantee Maintained check is occasionally updated. See - # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained - schedule: - - cron: '28 2 * * 6' # Saturday at 02:28 UTC - -permissions: read-all - -jobs: - autoupdate: - name: Autoupdate - - runs-on: ubuntu-latest - timeout-minutes: 10 - - permissions: - # Needed to create a PR with autoupdate changes - contents: write - pull-requests: write - - steps: - - name: Checkout DPNP repo - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - - - name: Set up python - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 - with: - python-version: '3.14' - - - name: Install pre-commit - run: pip install pre-commit - - - name: Run pre-commit autoupdate - run: pre-commit autoupdate - - - name: Create a PR with autoupdate changes - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 #v8.1.1 - with: - commit-message: 'chore: update pre-commit hooks' - add-paths: .pre-commit-config.yaml - branch: 'bot/pre-commit-autoupdate' - delete-branch: true - title: Weekly pre-commit autoupdate - body: | - This PR updates the `.pre-commit-config.yaml` using `pre-commit autoupdate`. - labels: autoupdate