Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

feat: open threads limit #45

feat: open threads limit

feat: open threads limit #45

Workflow file for this run

name: pre-commit
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- run: pip install pre-commit
- name: Run pre-commit checks
run: pre-commit run
- name: Stage changes
run: git add .
- name: Check for changes
id: check
run: |
git diff --cached --quiet || echo "::set-output name=changes::true"
- name: Commit and push changes
if: steps.check.outputs.changes == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git commit -m "style: run pre-commit"
git push