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)$