Skip to content

Commit 3afa307

Browse files
committed
Update lint-test.yaml
1 parent 5ae7d9e commit 3afa307

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/lint-test.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,19 @@ jobs:
2929
- name: Run chart-testing (list-changed)
3030
id: list-changed
3131
run: |
32-
changed=$(ct list-changed --config ct.yaml)
32+
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
3333
if [[ -n "$changed" ]]; then
34-
echo "::set-output name=changed::true"
34+
echo "changed=true" >> "$GITHUB_OUTPUT"
3535
fi
3636
3737
- name: Run chart-testing (lint)
38-
run: ct lint --config ct.yaml
38+
if: steps.list-changed.outputs.changed == 'true'
39+
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
3940

4041
- name: Create kind cluster
41-
uses: helm/[email protected]
4242
if: steps.list-changed.outputs.changed == 'true'
43+
uses: helm/[email protected]
4344

4445
- name: Run chart-testing (install)
45-
run: ct install --config ct.yaml
46+
if: steps.list-changed.outputs.changed == 'true'
47+
run: ct install --target-branch ${{ github.event.repository.default_branch }}

0 commit comments

Comments
 (0)