forked from motioneye-project/motioneye
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 752 Bytes
/
Copy pathpre-commit.yml
File metadata and controls
27 lines (23 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# https://pre-commit.com
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
name: pre-commit
on: [pull_request, push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
pre-commit:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.x'
check-latest: true
- run: |
pip install pre-commit
pre-commit --version
pre-commit run --all-files --show-diff-on-failure