Skip to content

Commit 431ce6e

Browse files
committed
fix(chart-lint): make the lint and changed tests branch-aware
1 parent e747711 commit 431ce6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/helm-chart-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ jobs:
7676
- name: Run chart-testing (list-changed)
7777
id: list-changed
7878
run: |
79-
changed=$(ct list-changed --target-branch ${{ github.event.ref }})
79+
changed=$(ct list-changed --target-branch ${{ github.base_ref || github.ref_name }})
8080
if [[ -n "$changed" ]]; then
8181
echo "CHART_CHANGED=true" >> $GITHUB_ENV
8282
fi
8383
8484
# run chart linting
8585
- name: Run chart-testing (lint)
86-
run: ct lint --target-branch ${{ github.event.ref }} --config charts/config/chart-testing-config.yaml
86+
run: ct lint --target-branch ${{ github.base_ref || github.ref_name }} --config charts/config/chart-testing-config.yaml

0 commit comments

Comments
 (0)