1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

fix: replace base_ref with ref_name in helm test GHA (#8735)

Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
This commit is contained in:
Vishal Choudhary 2023-10-25 19:23:05 +05:30 committed by GitHub
parent 3f2e00eac8
commit 83254f2c3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,11 +36,13 @@ jobs:
python-version: 3.7
- name: Set up chart-testing
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
- name: Set reference
run: echo "REF=${{ github.event.pull_request && github.base_ref || github.ref_name }}" >> $GITHUB_ENV
- name: Run chart-testing (lint)
run: |
if [[ $(ct list-changed --target-branch=${{ github.base_ref }}) ]];
if [[ $(ct list-changed --target-branch=$REF) ]];
then
ct lint --target-branch=${{ github.base_ref }} --check-version-increment=false --validate-maintainers=false
ct lint --target-branch=$REF --check-version-increment=false --validate-maintainers=false
fi
- name: Setup test env
uses: ./.github/actions/setup-test-env