Skip to content

Add pre-commit and edits made by pre-commit #4

Add pre-commit and edits made by pre-commit

Add pre-commit and edits made by pre-commit #4

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
workflow_dispatch:
jobs:
pre-commit:
# pull requests are a duplicate of a branch push if within the same repo.
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Make prevent_commit_to_main.sh executable
run: chmod +x ./prevent_commit_to_main.sh
- uses: pre-commit/[email protected]
with:
extra_args: --all-files