Skip to content
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions license-header-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ runs:
# Get license pattern with year
CURRENT_YEAR=$(date +%Y)
LICENSE_PATTERN="Copyright \(c\) .*?${CURRENT_YEAR},? NVIDIA CORPORATION."

# Skip for merge to main PR
if [[ "${{ github.event.pull_request.base.sha }}" == "main" ]]; then
Copy link
Member

@pxLi pxLi Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not sure, sha could be the actual commit id, may try .ref

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have a target main run log? thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/YanxuanLiu/spark-rapids/actions/runs/13404579617/job/37442083494?pr=24#step:4:33 it still got branch-25.02 since the feature branch is based on branch-25.02

Copy link
Member

@pxLi pxLi Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then we could try pass the ENV from caller side or try find some other event property for this case

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image I am checking your test vars, it seems this commit check status has been override by previous run

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected the commit history of forked repo and tested again, now it can get correct base.ref https://github.com/YanxuanLiu/spark-rapids/actions/runs/13406205693/job/37446469023?pr=25

echo "Skip this check for Merge to main PR."
exit 0
fi

# Format file patterns
IFS="," read -r -a INCLUDE_PATTERNS <<< "$(echo "${{ inputs.included_file_patterns }}" | tr -d ' ' | tr -d '\n')"
Expand Down