We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe9c741 + e20e5e2 commit d0b2d87Copy full SHA for d0b2d87
.github/workflows/pre-commit.yml
@@ -0,0 +1,21 @@
1
+name: pre-commit
2
+
3
+on:
4
+ pull_request:
5
+ push:
6
+ workflow_dispatch:
7
8
+jobs:
9
+ pre-commit:
10
+ # pull requests are a duplicate of a branch push if within the same repo.
11
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
12
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v3
16
+ - uses: actions/setup-python@v4
17
+ - name: Make prevent_commit_to_main.sh executable
18
+ run: chmod +x ./prevent_commit_to_main.sh
19
+ - uses: pre-commit/action@v3.0.0
20
+ with:
21
+ extra_args: --all-files
0 commit comments