From 830155750d198b6ea349bd7d73e2318c1e3b1e07 Mon Sep 17 00:00:00 2001 From: Vera Xia Date: Fri, 20 Sep 2024 10:04:25 -0700 Subject: [PATCH] use default branch for license compare --- .github/workflows/license-check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index 92bbfaabd..ed64c4388 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -12,11 +12,12 @@ jobs: python-version: [3.9] steps: + # As the license check no longer run on PR, it would always compare to the main branch. - name: Checkout main uses: actions/checkout@v2 with: path: sdkmain - ref: ${{ github.base_ref }} + ref: ${{ github.event.repository.default_branch }} - name: Checkout this ref uses: actions/checkout@v2 with: