[ADMIN] Pre-commit auto-update #20
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
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@v4 | |
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 |