diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9dbc5d01..c6ea4e42 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,3 +8,7 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml deleted file mode 100644 index ebc5db34..00000000 --- a/.github/workflows/pre-commit-autoupdate.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Pre-commit auto-update - -permissions: - contents: write - pull-requests: write - -on: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - -jobs: - auto-update: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v7 - - uses: actions/setup-python@v7 - - name: install pre-commit - run: pip install pre-commit - - name: run autoupdate - run: pre-commit autoupdate - - name: create PR - uses: peter-evans/create-pull-request@v8 - with: - token: ${{ secrets.GITHUB_TOKEN }} - branch: update/pre-commit-autoupdate - title: 'Auto-update pre-commit hooks' - commit-message: '[Dependencies] auto update pre-commit hook' - labels: dependencies -