forked from sandboxie-plus/sandboxie-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 887 Bytes
/
pre-commit.yml
File metadata and controls
35 lines (30 loc) · 887 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
28
29
30
31
32
33
34
35
name: pre-commit
on:
# Triggers the workflow on ALL push or pull request events
# except for the `gh-pages`` branch
push:
branches-ignore:
- gh-pages
# pull_request:
# branches-ignore:
# - gh-pages
permissions:
contents: write
# pull-requests: write
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1
- name: Commit changes
if: ${{ !cancelled() && failure() }}
shell: bash
run: |
git config --local user.name "pre-commit-ci[bot]"
git config --local user.email "66853113+pre-commit-ci[bot]@users.noreply.github.com"
git commit -m "[pre-commit.ci] auto-fixes from pre-commit hooks" -a
git push origin HEAD:${{ github.head_ref || github.ref_name }}