Skip to content

Commit

Permalink
pre-commit pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mariofix committed Dec 12, 2024
1 parent a12dbdb commit 0e65f20
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pre-commit Failure

on:
push:
branches:
- main
paths:
- ".pre-commit-config.yaml"

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run pre-commit
uses: pre-commit/action@v2
env:
PRE_COMMIT_CONFIG: ".pre-commit-config.yaml"
- name: Check pre-commit result
run: |
if [ $? -ne 0 ]; then
echo "Pre-commit checks failed"
# Create a pull request
github/create-pull-request@v1
fi

0 comments on commit 0e65f20

Please sign in to comment.