Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#6971][followup] build: Fix incorrect target branch variable in chart CI (#6984)

Danhua Wang281c836e9486
diff --git a/.github/workflows/chart-test.yaml b/.github/workflows/chart-test.yaml
index 38b09c8588..0679c72c19 100644
--- a/.github/workflows/chart-test.yaml
+++ b/.github/workflows/chart-test.yaml
@@ -55,7 +55,7 @@ jobs:
- name: List changed
id: list-changed
run: |
- changed=$(ct list-changed --chart-dirs=dev/charts --target-branch ${{ github.event.repository.default_branch }})
+ changed=$(ct list-changed --chart-dirs=dev/charts --target-branch ${{ github.event.pull_request.base.ref }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
@@ -64,7 +64,7 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- ct lint --chart-dirs=dev/charts --chart-yaml-schema=dev/ci/chart_schema.yaml --lint-conf=dev/ci/lintconf.yaml --target-branch ${{ github.event.repository.default_branch }}
+ ct lint --chart-dirs=dev/charts --chart-yaml-schema=dev/ci/chart_schema.yaml --lint-conf=dev/ci/lintconf.yaml --target-branch ${{ github.event.pull_request.base.ref }}
- name: Set up kind cluster
if: steps.list-changed.outputs.changed == 'true'
@@ -78,8 +78,8 @@ jobs:
- name: Run chart-testing (install default)
if: steps.list-changed.outputs.changed == 'true'
- run: ct install --chart-dirs=dev/charts --target-branch ${{ github.event.repository.default_branch }}
+ run: ct install --chart-dirs=dev/charts --target-branch ${{ github.event.pull_request.base.ref }}
- name: Run chart-testing (install mysql enable)
if: steps.list-changed.outputs.changed == 'true'
- run: ct install --chart-dirs=dev/charts --helm-extra-set-args "--values dev/charts/gravitino/resources/scenarios/ci-values.yaml" --target-branch ${{ github.event.repository.default_branch }}
\ No newline at end of file
+ run: ct install --chart-dirs=dev/charts --helm-extra-set-args "--values dev/charts/gravitino/resources/scenarios/ci-values.yaml" --target-branch ${{ github.event.pull_request.base.ref }}
\ No newline at end of file