-
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@6ae615f6475d2ede5ad88bea6baa7a1d5e93ffaa # v3.0.19
with:
allowlist: |
Alfresco/alfresco-build-tools/
- name: Setup helm docs
uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@a96753d4d1c98384249ea8370b5d605866b63e1e # v8.8.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@a96753d4d1c98384249ea8370b5d605866b63e1e # v8.8.0
with:
# disable auto-commit for PRs from forks
auto-commit: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }}