-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (31 loc) · 1.08 KB
/
pre-commit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: Pre-commit
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
pre_commit:
name: Run pre-commit
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@b8f9a25a51fe633d9215ac7734854dc11cd299cb # v3.0.13
with:
allowlist: |
Alfresco/alfresco-build-tools/
- name: Setup helm docs
uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@a288b9efdaa50413573b2e130896d906478b8e50 # v5.31.0
- name: Install kubeconform helm plugin
run: |
helm plugin install https://github.com/jtyr/kubeconform-helm --version v0.1.12
- name: Run pre-commit
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@a288b9efdaa50413573b2e130896d906478b8e50 # v5.31.0
with:
# disable auto-commit for PRs from forks
auto-commit: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }}