diff --git a/.github/workflows/license-header-check.yml b/.github/workflows/license-header-check.yml index a2faa44f8..db783e66a 100644 --- a/.github/workflows/license-header-check.yml +++ b/.github/workflows/license-header-check.yml @@ -22,11 +22,16 @@ on: jobs: license-header-check: runs-on: ubuntu-latest + if: "!contains(github.event.pull_request.title, '[bot]')" steps: + - name: Get checkout depth + run: | + echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 10 ))" >> $GITHUB_ENV + - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 5 + fetch-depth: ${{ env.PR_FETCH_DEPTH }} - name: license-header-check uses: NVIDIA/spark-rapids-common/license-header-check@main @@ -46,3 +51,5 @@ jobs: *.xml, *.fbs, build/* + excluded_file_patterns: | + thirdparty/*