Skip to content

Commit 4d69975

Browse files
authored
Merge pull request #1684 from RainbowMango/pr_bump_helm_chart_testing_action
Use repository default branch in chart-testing workflow
2 parents 6513fa9 + 2e8202d commit 4d69975

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lint-test-chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Check for changes
4040
id: changes
4141
run: |
42-
changed="$(ct list-changed --target-branch=master)"
42+
changed="$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})"
4343
if [[ -n "${changed}" ]]
4444
then
4545
echo "changed=true" >> "${GITHUB_OUTPUT}"
@@ -78,7 +78,7 @@ jobs:
7878

7979
- name: Run chart-testing lint
8080
if: steps.changes.outputs.changed == 'true'
81-
run: ct lint --target-branch=master --check-version-increment=false
81+
run: ct lint --check-version-increment=false --target-branch ${{ github.event.repository.default_branch }}
8282

8383
- name: Create Kind cluster
8484
if: steps.changes.outputs.changed == 'true'
@@ -120,4 +120,4 @@ jobs:
120120
121121
- name: Run chart-testing install
122122
if: steps.changes.outputs.changed == 'true'
123-
run: ct install --target-branch=master --namespace kube-system
123+
run: ct install --target-branch ${{ github.event.repository.default_branch }} --namespace kube-system

0 commit comments

Comments
 (0)