Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

vrslev/pre-commit-autoupdate

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

vrslev/pre-commit-autoupdate

GitHub action to autoupdate pre-commit hooks in pre-commit config.

Usage

Here's example workflow that runs pre-commit autoupdate and creates a PR:

name: Update pre-commit hooks

on:
  schedule:
    # Every monday at 7 AM
    - cron: 0 7 * * 1

jobs:
  update:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: vrslev/[email protected]
      - uses: peter-evans/[email protected]
        with:
          branch: pre-commit-autoupdate
          title: "chore(deps): Update pre-commit hooks"
          commit-message: "chore(deps): Update pre-commit hooks"
          body: Update pre-commit hooks
          labels: dependencies
          delete-branch: True

You can also specify extra arguments:

      - uses: vrslev/[email protected]
        with:
          extra-args: --freeze