Skip to content

Commit 85026f6

Browse files
committed
try base ref everywhere
1 parent fa81e44 commit 85026f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
- name: Set up chart-testing
3535
uses: helm/[email protected]
3636
- name: Run chart-testing (lint)
37-
run: ct lint --target-branch ${{ github.event.pull_request.head.ref }}
37+
run: ct lint --target-branch ${{ github.event.pull_request.base.ref }}
3838
# Only build a kind cluster if there are chart changes to test.
3939
- name: Run chart-testing (list-changed)
4040
id: list-changed
4141
run: |
42-
changed=$(ct list-changed --target-branch ${{ github.event.pull_request.head.ref }})
42+
changed=$(ct list-changed --target-branch ${{ github.event.pull_request.base.ref }})
4343
if [[ -n "$changed" ]]; then
4444
echo "changed=true" >> $GITHUB_OUTPUT
4545
fi
@@ -48,7 +48,7 @@ jobs:
4848
uses: helm/[email protected]
4949
- if: steps.list-changed.outputs.changed == 'true'
5050
name: Run chart-testing (install)
51-
run: ct install --target-branch ${{ github.event.pull_request.head.ref }}
51+
run: ct install --target-branch ${{ github.event.pull_request.base.ref }}
5252
helm-docs-validate:
5353
if: ${{ needs.changes.outputs.charts == 'true' }}
5454
name: Helm Docs

0 commit comments

Comments
 (0)