Skip to content

Commit

Permalink
github-action: support check/lint/pre-commit (#38175)
Browse files Browse the repository at this point in the history
(cherry picked from commit bef2cc6)

# Conflicts:
#	.pre-commit-config.yaml
  • Loading branch information
v1v authored and mergify[bot] committed Jun 4, 2024
1 parent c46512f commit bb64238
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ repos:
rev: v4.4.0
hooks:
- id: check-merge-conflict
<<<<<<< HEAD

- repo: https://github.com/elastic/apm-pipeline-library.git
rev: v1.1.397
hooks:
- id: check-jenkins-pipelines
files: ^(.ci/(.*\.groovy|Jenkinsfile)|Jenkinsfile)$
- id: check-jjbb
=======
>>>>>>> bef2cc6beb (github-action: support check/lint/pre-commit (#38175))

0 comments on commit bb64238

Please sign in to comment.