Files
docker-py-revanced/.github/workflows/pre-commit-autoupdate.yml
T
Nikhil Badyal 0cafeb1381 🚀 Initial Commit
2022-08-12 21:02:47 +05:30

44 lines
1.1 KiB
YAML

# Run pre-commit autoupdate every day at midnight
# and create a pull request if any changes
name: Pre-commit auto-update
on:
schedule:
- cron: "15 2 * * *"
workflow_dispatch: # to trigger manually
permissions:
contents: read
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.2.0
with:
python-version: "3.10"
- name: Install pre-commit
run: pip install pre-commit
- name: Autoupdate template
run: pre-commit autoupdate
- name: Autoupdate generated projects
run: pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_PERSONAL_TOKEN }}
branch: update/pre-commit-autoupdate
title: Update pre-commit hooks
commit-message: updated pre-commit hooks
body: Update versions of tools in pre-commit configs to latest version
labels: pre-commit