diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3393e58..9df4838 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,11 +9,11 @@ updates: directory: "/" schedule: interval: "weekly" - reviewers: - - "officel" - package-ecosystem: "pip" directory: "/" schedule: interval: "weekly" - reviewers: - - "officel" + - package-ecosystem: "pre-commit" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 217beb3..2d952e4 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,40 +1,16 @@ name: pre-commit on: - schedule: - - cron: '0 15 * * FRI' workflow_dispatch: pull_request: jobs: pre-commit: permissions: - contents: write - pull-requests: write + contents: read + pull-requests: read runs-on: ubuntu-latest timeout-minutes: 5 steps: - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 - with: - python-version: '3.10' - - uses: pre-commit/action@v3.0.1 - - - run: pre-commit autoupdate - if: ${{ github.event_name == 'schedule' }} - - name: Create Pull Request - if: ${{ github.event_name == 'schedule' }} - uses: peter-evans/create-pull-request@v8 - with: - token: ${{ secrets.GITHUB_TOKEN }} - base: ${{ github.event.repository.default_branch }} - branch: update/pre-commit-autoupdate - title: 'build(deps): bump pre-commit autoupdate' - commit-message: 'build(deps): bump pre-commit autoupdate' - body: | - Update versions of tools in pre-commit - configs to latest version - add-paths: | - .pre-commit-config.yaml - assignees: ${{ github.actor }} - reviewers: ${{ github.actor }} + - uses: j178/prek-action@v1