Skip to content

Commit

Permalink
fix(chart-lint): should work on push and pull requests. correct yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
drcgjung committed Sep 1, 2023
1 parent 0d2b0f0 commit 7918e06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/helm-chart-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
lint-test:
runs-on: ubuntu-latest
needs: [ git-branch ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -87,12 +88,12 @@ jobs:
uses: helm/[email protected]

- 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 ${{ needs.git-branch.outputs.value }} --config charts/config/chart-testing-config.yaml

- 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 ${{ needs.git-branch.outputs.value }}
if [[ -n "$changed" ]]; then
echo "CHART_CHANGED=true" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 7918e06

Please sign in to comment.