-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (31 loc) · 1.07 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@38608ef4fb69adae7f1eac6eeb88e67b7d083bfd # v3.0.16
with:
allowlist: |
Alfresco/alfresco-build-tools/
- name: Setup helm docs
uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.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@a0837df06d10de2cae8a99319e8e101a6cbe9083 # v8.4.0
with:
# disable auto-commit for PRs from forks
auto-commit: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }}