From 9f804d212a49dd84ae67807290b9dfdfa041d72c Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Fri, 20 Sep 2024 10:17:04 -0700 Subject: [PATCH] use default base sha --- .github/workflows/license-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index ed64c4388..6f2c49c49 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -24,7 +24,7 @@ jobs: path: new-ref fetch-depth: 0 - name: Get Diff - run: git --git-dir ./new-ref/.git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }}| xargs > fileList.txt + run: git --git-dir ./new-ref/.git diff --name-only --diff-filter=ACMRT ${{ github.event.repository.default_branch.sha }} ${{ github.sha }}| xargs > fileList.txt - name: Checkout scancode uses: actions/checkout@v2 with: