Skip to content

pre-commit autoupdate #18

pre-commit autoupdate

pre-commit autoupdate #18

name: pre-commit autoupdate
permissions:
pull-requests: write
contents: write
on:
schedule:
- cron: 0 3 1 1/6 *
workflow_dispatch:
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit autoupdate
run: pre-commit autoupdate
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
branch: update/pre-commit-autoupdate
title: Update pre-commit hooks
commit-message: Update pre-commit hooks versions
body: Update versions of pre-commit tools to latest version.
labels: dependencies
delete-branch: true