Skip to content

OPSEXP-2390: add an example chart for educational purpose (#1084) #1285

OPSEXP-2390: add an example chart for educational purpose (#1084)

OPSEXP-2390: add an example chart for educational purpose (#1084) #1285

---
name: Pre-commit (Helm)
on:
pull_request:
branches:
- master
- release/**
- next/**
paths:
- helm/**
- test/postman/helm/**
- .github/workflows/pre-commit-helm.yml
- "**.md"
- .pre-commit-config.yaml
push:
branches:
- master
- release/**
env:
# https://pre-commit.com/#temporarily-disabling-hooks
SKIP: docker-compose-check
jobs:
pre_commit:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- name: Add dependency chart repos
run: |
for repo in $(yq eval-all \
'. as $item ireduce ({}; . *+ $item ) | [.dependencies[].repository | select(. == "http*")] | unique | .[]' \
./helm/*/Chart.yaml); do repo_name=$(echo "$repo" | awk -F/ '{print $3}')
helm repo add "$repo_name" "$repo"
done
- name: Run Pre-commit hooks
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0