Skip to content

Commit

Permalink
Create pre-commit-autoupdate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Feb 22, 2024
1 parent bc47d41 commit d3e9802
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pre-commit autoupdate

on:
# every month
schedule:
- cron: "0 0 1 * *"
# on demand
workflow_dispatch:

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: browniebroke/pre-commit-autoupdate-action@main
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
commit-message: "Update pre-commit hooks."
body: Update versions of pre-commit hooks to latest version.

0 comments on commit d3e9802

Please sign in to comment.