From 03719df054bc652a7a2ede69691b17464e7f1ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Sas=C3=A1k?= Date: Tue, 27 Jun 2023 11:21:37 +0200 Subject: [PATCH] chore: add github actions pre-commit hook VULN-2714 --- .github/workflows/pre-commit.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 000000000..780dc929a --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,22 @@ +name: Pre-Commit Check + +on: + push: + branches: + - "master" + - "stable" + pull_request: + branches: + - "master" + - "stable" + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Pre-Commit + uses: pre-commit/action@v3.0.0