Skip to content

Commit 439d63e

Browse files
committed
optimize
Signed-off-by: Yanxuan Liu <[email protected]>
1 parent efaedfa commit 439d63e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

license-header-check/action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ runs:
4242
LICENSE_PATTERN="Copyright \(c\) .*?${CURRENT_YEAR},? NVIDIA CORPORATION."
4343
4444
# Skip check for main branch when check_main == false
45-
if [[ "${{ inputs.check_main }}" == "false" ]]; then
46-
if [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
47-
echo "Skip this check for Merge to main PR."
48-
exit 0
49-
fi
45+
if [[ "${{ inputs.check_main }}" == "false" && "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
46+
echo "Skip this check for Merge to main PR."
47+
exit 0
5048
fi
5149
5250
# Format file patterns

0 commit comments

Comments
 (0)