Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Aug 16, 2024
1 parent 6f84348 commit 31539a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/goldenfile_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ 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 "origin/$GITHUB_BASE_REF")
changed_xds_files=$(git --no-pager diff --name-only HEAD "$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" | egrep "agent/xds/testdata/.*")

echo "origin/$GIT_BRANCH_REF"
echo "getting changed files"
changed_xds_files=$(git --no-pager diff --name-only HEAD "$(git merge-base HEAD "origin/$GITHUB_BRANCH_REF")" | egrep "agent/xds/testdata/.*" || true)
echo "got changed files"
# If we do not find a file in .changelog/, we fail the check
if [ -z "$changed_xds_files" ]; then
# pass status check if no changes were found for xds files
Expand Down

0 comments on commit 31539a2

Please sign in to comment.