From e399c8ed40e0905b021488fba17c765b87103e16 Mon Sep 17 00:00:00 2001 From: Logan Beard Date: Mon, 14 Oct 2024 14:22:28 +1300 Subject: [PATCH] LF-55044 revert to existing workflow file, with exclusion for internal hook --- .github/workflows/pre-commit.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..c5fc881 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,28 @@ +name: pre-commit + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + pre-commit: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Run pre-commit + uses: pre-commit/action@v3.0.1 + env: + SKIP: "bentley-file-copyright-check" # Skip this hook since it is not available from public repo