diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 69a05386..06cdadbd 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,13 +1,16 @@ # https://pre-commit.com # This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file. name: pre-commit -on: [push, pull_request] +on: + pull_request: + push: + branches: [master] jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: actions/setup-python@master + - uses: actions/checkout@v2 + - uses: actions/setup-python@v1 - run: pip install pre-commit - run: pre-commit --version - run: pre-commit install