Skip to content

Commit

Permalink
Update pre-commit auto-update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed May 10, 2023
1 parent 3059dea commit a97fe42
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: browniebroke/pre-commit-autoupdate-action@main
- uses: peter-evans/create-pull-request@v3

- name: Configure Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Use Pip cache if available
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip3-${{ hashFiles('*requirements.txt') }}
- name: Install wheel package
run: pip install wheel

- name: Install dependencies (including pytype)
# needed to install pytype
run: pip install -e .[dev]

- name: Update and validate pre-commit updates
uses: browniebroke/pre-commit-autoupdate-action@main

- name: Create Pull request with pre-commit updates
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
commit-message: "chore: update pre-commit hooks"
commit-message: "CI: update pre-commit hooks"
body: Update versions of pre-commit hooks to latest version.

0 comments on commit a97fe42

Please sign in to comment.