Skip to content

Update .pre-commit-config.yaml #111

Update .pre-commit-config.yaml

Update .pre-commit-config.yaml #111

name: Update .pre-commit-config.yaml
on:
schedule:
- cron: '0 3 * * *' # Every day at 03:00 UTC
workflow_dispatch:
jobs:
update-pre-commit-config:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: '3.14'
cache: "pip"
- name: Install pre-commit
run: pip install --upgrade pre-commit
- name: Set up Git user
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Update .pre-commit-config.yaml
run: pre-commit autoupdate --freeze
- name: Create Pull Request
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
with:
commit-message: "chore(deps): Update .pre-commit-config.yaml"
title: "chore(deps): Update .pre-commit-config.yaml"
body: "Automated update of .pre-commit-config.yaml via scheduled workflow."
branch: "update/pre-commit-config-yaml"
base: ${{ github.ref_name }}
labels: "update"
reviewers: "linuxdaemon"
assignees: "linuxdaemon"
sign-commits: true