This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
fix: add await #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |