Skip to content

Use checksum to roll deployments #270

Use checksum to roll deployments

Use checksum to roll deployments #270

Workflow file for this run

name: Lint
on:
pull_request:
paths:
- 'charts/**'
push:
paths:
- 'charts/**'
workflow_dispatch:
jobs:
lint:
name: Lint Helm charts
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Set up Helm
uses: Azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
with:
version: 'v3.13.1'
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: '3.12'
check-latest: true
- name: Set up chart-testing
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
- name: Run chart-testing (list-changed)
id: list-changed
run: |
CHANGED=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$CHANGED" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
env:
CT_CHECK_VERSION_INCREMENT: false
run: ct lint --target-branch ${{ github.event.repository.default_branch }}