-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
29 lines (24 loc) · 865 Bytes
/
action.yml
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
name: "Update pre-commit config versions"
description: "Run pre-commit autoupdate to update pre-commit config versions"
inputs:
GITHUB_TOKEN:
description: "Muilti-line list of secrets to expose to the build"
required: false
default: ""
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install pre-commit and run autoupdate
shell: bash
run: |
pip install pre-commit
pre-commit autoupdate
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ inputs.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
commit-message: "chore: update pre-commit hooks"
body: "Update versions of pre-commit hooks to latest version. Please close and open PR manually to trigger CI checks."