From dab606e0745db876812359e541fd784b1690b0cc Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 4 Jun 2024 19:48:56 +0200 Subject: [PATCH] github-action: support check/lint/pre-commit (#38175) (cherry picked from commit bef2cc6beb8b5fa42a35678433375a5a48eb1032) --- .github/workflows/pre-commit.yml | 18 ++++++++++++++++++ .pre-commit-config.yaml | 6 ------ 2 files changed, 18 insertions(+), 6 deletions(-) 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 00000000000..096dee6bea5 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,18 @@ +name: pre-commit + +on: + pull_request: + push: + branches: + - main + - 7.1* + - 8.* + +permissions: + contents: read + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: elastic/apm-pipeline-library/.github/actions/pre-commit@current diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2c9643e3f95..cf3ceb27625 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,9 +3,3 @@ repos: rev: v4.4.0 hooks: - id: check-merge-conflict - -- repo: https://github.com/elastic/apm-pipeline-library.git - rev: v1.1.397 - hooks: - - id: check-jenkins-pipelines - files: ^(.ci/(.*\.groovy|Jenkinsfile)|Jenkinsfile)$