mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-27 16:10:30 +08:00
555113a6f2
This reverts commit 5b275ed804.
28 lines
752 B
YAML
28 lines
752 B
YAML
name: pre-commit
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.10"
|
|
- uses: pre-commit/action@v3.0.0
|
|
- name: Post PR comment on failure
|
|
if: failure() && github.event_name == 'pull_request'
|
|
uses: peter-evans/create-or-update-comment@v2
|
|
with:
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
body: |
|
|
:x: **pre-commit** failed.
|
|
Please run `pre-commit run --all-files` locally and commit the changes.
|
|
Find more information in the repository's CONTRIBUTING.md
|