forked from pyvista/pyvista
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.02 KB
/
pre-commit-update.yml
File metadata and controls
40 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pre-commit auto-update
on:
# every sunday at midnight GMT
schedule:
- cron: "0 0 * * 0"
# on demand
workflow_dispatch:
jobs:
auto-update:
# This job can create issues/PRs/comments, so
# only run on the head `pyvista/pyvista` repo
if: github.repository_owner == 'pyvista'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit autoupdate
run: pre-commit autoupdate
- uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ci/update-pre-commit-hooks
title: Update pre-commit hooks
commit-message: "update pre-commit hooks"
labels: |
dependencies
maintenance
body: Update versions of pre-commit hooks to latest version.