From 6b89ea9b86820e2b96c82d5d502b1d28c4cef47c Mon Sep 17 00:00:00 2001 From: Alexander Williams Date: Mon, 23 Dec 2024 09:33:12 -0800 Subject: [PATCH] [ci] Use git commands instead of gh pr diff Due to the file number limit for `gh pr diff`, change to comparing the checkout against the base branch. Signed-off-by: Alexander Williams --- .github/workflows/pr_change_check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_change_check.yml b/.github/workflows/pr_change_check.yml index 1a1d572fd943e..2320050459f3c 100644 --- a/.github/workflows/pr_change_check.yml +++ b/.github/workflows/pr_change_check.yml @@ -22,7 +22,9 @@ jobs: run: | pr_url="https://github.com/${{ github.repository }}/pull/${{ github.event.number }}" echo $pr_url - gh pr diff $pr_url --name-only > $HOME/changed_files + gh pr checkout $pr_url --name-only > $HOME/changed_files + BASE_BRANCH=$(gh pr view --json baseRefName --jq .baseRefName) + git diff --stat --name-only $BASE_BRANCH > $HOME/changed_files env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}