Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: autoupdate pre-commit config #1302

Merged
merged 1 commit into from
Aug 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/update-pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a scheduled workflow to keep pre-commit config up to date

name: Update pre-commit config

on:
schedule:
# Runs at 00:00 UTC on the 1st of every month
- cron: '0 0 1 * *'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install pre-commit
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pre-commit
pre-commit install

- name: Update pre-commit config
run: |
pre-commit autoupdate
pre-commit uninstall

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "chore: update pre-commit config"
title: "chore: update pre-commit config"
branch: chore-precommit-config
delete-branch: true
author: GitHub <noreply@github.com>