diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7863596..b840d80 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,3 +6,18 @@ updates: interval: "weekly" day: "saturday" rebase-strategy: "disabled" + labels: ["autoupdate"] + groups: + github-actions: + 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 911090b..0000000 --- a/.github/workflows/pre-commit-autoupdate.yml +++ /dev/null @@ -1,49 +0,0 @@ -name: Autoupdate pre-commit - -on: - 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 mkl-service repo - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Set up python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.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