Skip to content

[ADMIN] Pre-commit auto-update #27

[ADMIN] Pre-commit auto-update

[ADMIN] Pre-commit auto-update #27

name: '[ADMIN] Pre-commit auto-update'
on:
workflow_dispatch:
schedule:
- cron: '0 10 15 * *' # At 10:00 on day-of-month 15
jobs:
auto-update:
runs-on: ubuntu-20.04
steps:
- name: 📂 Checkout Branch
uses: actions/checkout@v4
- name: ⚒ Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- 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/[email protected]
with:
title: '[ADMIN] Pre-commit auto-update'
branch-suffix: timestamp
commit-message: Auto-update pre-commit hooks
body: |
Update versions of tools in pre-commit
configs to latest version