Skip to content

chore(main): [bot] release t8s-cluster:5.0.0 #3661

chore(main): [bot] release t8s-cluster:5.0.0

chore(main): [bot] release t8s-cluster:5.0.0 #3661

Workflow file for this run

name: Lint Helm Charts
on:
pull_request:
paths:
- charts/**
merge_group:
types:
- checks_requested
jobs:
getChangedCharts:
uses: ./.github/workflows/get-changed-charts.yaml
lint-helm-chart:
name: lint helm chart
runs-on: ubuntu-latest
needs: getChangedCharts
strategy:
matrix:
chart: ${{ fromJson(needs.getChangedCharts.outputs.charts) }}
env:
CT_TARGET_BRANCH: ${{ github.event.repository.default_branch }}
CHART: ${{ matrix.chart }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: pip install yq
- name: Install sponge
run: sudo apt-get -yq install moreutils
- name: Extract helm repos
id: helm-repos
run: |
(
echo -n "repos="
yq -r '.dependencies[] | .repository' "charts/$CHART/Chart.yaml" | sort -u | awk '{printf (NR>1 ? "," : "") NR "=" $1}'
echo
) | tee "$GITHUB_OUTPUT"
- uses: actions/setup-python@v5
with:
python-version: 3.7
- run: ./.github/scripts/prepare-values.sh "charts/$CHART"
- uses: helm/[email protected]
- name: Lint chart
run: ct lint --check-version-increment=false
env:
CT_CHART_REPOS: ${{ steps.helm-repos.outputs.repos }}
CT_CHARTS: charts/${{ matrix.chart }}
- name: enforce trusted registries
run: ./.github/scripts/enforce-trusted-registries.sh "charts/$CHART"