diff --git a/.github/scripts/goldenfile_checker.sh b/.github/scripts/goldenfile_checker.sh index 7bafc266407f..df6577f53b41 100755 --- a/.github/scripts/goldenfile_checker.sh +++ b/.github/scripts/goldenfile_checker.sh @@ -7,6 +7,8 @@ set -euo pipefail # check if there is a diff in the xds testdata directory after running `make envoy-regen` make envoy-regen +echo "$GITHUB_BASE_REF" +echo git merge-base HEAD "$GITHUB_BASE_REF" changed_xds_files=$(git --no-pager diff --name-only HEAD "$(git merge-base HEAD "$GITHUB_BASE_REF")" | egrep "agent/xds/testdata/.*") # If we do not find a file in .changelog/, we fail the check