Skip to content

Commit 75dc75f

Browse files
authored
Skip header check for merge to main PR (#28)
fix #27 Test run: https://github.com/YanxuanLiu/spark-rapids/actions/runs/13406205693 --------- Signed-off-by: Yanxuan Liu <[email protected]>
1 parent ea7b8a8 commit 75dc75f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

license-header-check/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ runs:
3535
# Get license pattern with year
3636
CURRENT_YEAR=$(date +%Y)
3737
LICENSE_PATTERN="Copyright \(c\) .*?${CURRENT_YEAR},? NVIDIA CORPORATION."
38+
39+
# Skip for merge to main PR
40+
if [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
41+
echo "Skip this check for Merge to main PR."
42+
exit 0
43+
fi
3844
3945
# Format file patterns
4046
IFS="," read -r -a INCLUDE_PATTERNS <<< "$(echo "${{ inputs.included_file_patterns }}" | tr -d ' ' | tr -d '\n')"

0 commit comments

Comments
 (0)