Skip to content

Commit

Permalink
Create pre-commit-update.yml (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
bieniu committed Feb 6, 2023
1 parent 4c5efab commit 107b676
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pre-commit-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pre-commit auto-update
on:
schedule:
# Run on fridays
- cron: "0 0 * * 5"

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0

- name: Set up Python
uses: actions/setup-python@v4.5.0
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/create-pull-request@v4.2.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-autoupdate
title: Auto-update pre-commit hooks
commit-message: Auto-update pre-commit hooks
body: |
Update versions of tools in pre-commit
configs to latest version
labels: dependencies

0 comments on commit 107b676

Please sign in to comment.