Skip to content

Commit

Permalink
fix(chart-lint): make the lint and changed tests branch-aware
Browse files Browse the repository at this point in the history
  • Loading branch information
drcgjung committed Sep 1, 2023
1 parent e747711 commit 431ce6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/helm-chart-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ jobs:
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.ref }})
changed=$(ct list-changed --target-branch ${{ github.base_ref || github.ref_name }})
if [[ -n "$changed" ]]; then
echo "CHART_CHANGED=true" >> $GITHUB_ENV
fi
# run chart linting
- name: Run chart-testing (lint)
run: ct lint --target-branch ${{ github.event.ref }} --config charts/config/chart-testing-config.yaml
run: ct lint --target-branch ${{ github.base_ref || github.ref_name }} --config charts/config/chart-testing-config.yaml

0 comments on commit 431ce6e

Please sign in to comment.