Skip to content

Commit

Permalink
Fix bug license header check [skip ci] (#2616)
Browse files Browse the repository at this point in the history
* add excludes, skip for special pr

Signed-off-by: YanxuanLiu <[email protected]>

* change depth

Signed-off-by: YanxuanLiu <[email protected]>

* dynamic depth

Signed-off-by: YanxuanLiu <[email protected]>

* depth

Signed-off-by: YanxuanLiu <[email protected]>

* test

Signed-off-by: YanxuanLiu <[email protected]>

* test

Signed-off-by: YanxuanLiu <[email protected]>

* test

Signed-off-by: YanxuanLiu <[email protected]>

* +10 depth

Signed-off-by: YanxuanLiu <[email protected]>

* remove useless changes

* remove space line

Signed-off-by: YanxuanLiu <[email protected]>

* Update license-header-check.yml

* Update license-header-check.yml format

* check title contains bot

Signed-off-by: YanxuanLiu <[email protected]>

* contains issueg

Signed-off-by: YanxuanLiu <[email protected]>

---------

Signed-off-by: YanxuanLiu <[email protected]>
  • Loading branch information
YanxuanLiu authored Nov 21, 2024
1 parent bf94d21 commit 63f417a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/license-header-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,3 +51,5 @@ jobs:
*.xml,
*.fbs,
build/*
excluded_file_patterns: |
thirdparty/*

0 comments on commit 63f417a

Please sign in to comment.