Pre-commit auto-update #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 Alex Turbov <zaufi@pm.me> | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Pre-commit auto-update | |
on: | |
# every Sunday at midnight | |
schedule: | |
- cron: "0 0 * * 0" | |
# on demand | |
workflow_dispatch: | |
# enable this workflow to be reused | |
workflow_call: | |
jobs: | |
auto-update: | |
name: Checking for `pre-commit` hooks updates | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Pre-installing requirements | |
uses: browniebroke/pre-commit-autoupdate-action@v1.0.0 | |
- name: Create PR to Update configs | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: update/pre-commit-hooks | |
delete-branch: true | |
title: 'ci: version bump `pre-commit` hook plugins' | |
commit-message: 'misc: version bump `pre-commit` hook plugins' | |
body: | | |
# Changes in this PR | |
Update plugins of `pre-commit` hooks to the latest version. |