2022-10-14 15:03:42 +00:00
|
|
|
name: Pre-commit auto-update
|
|
|
|
|
|
|
|
on:
|
2023-09-18 19:46:43 +00:00
|
|
|
# every month
|
2022-10-14 15:03:42 +00:00
|
|
|
schedule:
|
2023-09-18 19:46:43 +00:00
|
|
|
- cron: "0 0 1 * *"
|
2022-10-14 15:03:42 +00:00
|
|
|
# on demand
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-18 20:56:59 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-04 07:36:57 +00:00
|
|
|
- uses: actions/setup-python@v5
|
2022-11-28 11:44:12 +00:00
|
|
|
with:
|
2023-01-16 17:25:31 +00:00
|
|
|
python-version: '3.x'
|
2022-10-14 15:03:42 +00:00
|
|
|
- uses: browniebroke/pre-commit-autoupdate-action@main
|
2024-02-01 09:21:22 +00:00
|
|
|
- uses: peter-evans/create-pull-request@v6
|
2022-10-14 15:03:42 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: update/pre-commit-hooks
|
|
|
|
title: Update pre-commit hooks
|
2022-11-24 12:15:23 +00:00
|
|
|
commit-message: "Update pre-commit hooks."
|
2022-10-14 15:03:42 +00:00
|
|
|
body: Update versions of pre-commit hooks to latest version.
|