python-benedict/.github/workflows/pre-commit-autoupdate.yml

26 lines
675 B
YAML
Raw Normal View History

2022-10-14 15:03:42 +00:00
name: Pre-commit auto-update
on:
# every month
2022-10-14 15:03:42 +00:00
schedule:
- cron: "0 0 1 * *"
2022-10-14 15:03:42 +00:00
# on demand
workflow_dispatch:
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
2022-11-28 11:44:12 +00:00
with:
2023-01-16 17:25:31 +00:00
python-version: '3.x'
2022-10-14 15:03:42 +00:00
- uses: browniebroke/pre-commit-autoupdate-action@main
- uses: peter-evans/create-pull-request@v6
2022-10-14 15:03:42 +00:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
title: Update pre-commit hooks
2022-11-24 12:15:23 +00:00
commit-message: "Update pre-commit hooks."
2022-10-14 15:03:42 +00:00
body: Update versions of pre-commit hooks to latest version.