Skip to content

Bump the csm-authorization group across 2 directories with 5 updates #1035

Bump the csm-authorization group across 2 directories with 5 updates

Bump the csm-authorization group across 2 directories with 5 updates #1035

# This action checks the Helm Chart changes for linting
name: helm-validations
# Check runs on PRs created to merge to main branch
on:
pull_request:
branches:
- main
- release-v*
jobs:
# This job will run helm lint on updated charts
lint:
name: CSM Chart Linter
runs-on: ubuntu-latest
steps:
# Check out the repo
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Set up Helm
uses: azure/[email protected]
with:
version: latest
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install chart-testing-action
uses: helm/[email protected]
- name: Run chart-testing list-changed
id: modified-charts
run: |
modified=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$modified" ]]; then
echo "modified=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing linter
if: steps.modified-charts.outputs.modified == 'true'
run: ct lint --config ct.yaml