Skip to content

Updating Pre-commit Configuration on seyLu/ghlabel #58

Updating Pre-commit Configuration on seyLu/ghlabel

Updating Pre-commit Configuration on seyLu/ghlabel #58

name: Auto-update Pre-commit
run-name: Updating Pre-commit Configuration on ${{ github.repository }}
on:
schedule:
- cron: "0 0 * * 0" # Run every Sunday at midnight UTC
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
auto_update:
name: Perform auto-update of pre-commit configuration
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Harden Runner
uses: step-security/harden-runner@951b48540b429070694bc8abd82fd6901eb123ca # v2.5.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.5.3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v4.7.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install and upgrade PIP
run: python -m pip install --upgrade pip
- name: Install Pre-commit
run: pip install pre-commit
- name: Update pre-commit
run: pre-commit autoupdate
- name: Create PR
uses: peter-evans/create-pull-request@5354f85616108575685a73a0ddd2f67c26a441c3 # v5.0.2
with:
token: ${{ secrets.SEYLUBOT_PAT }}
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
delete-branch: true