We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efaedfa commit 439d63eCopy full SHA for 439d63e
license-header-check/action.yml
@@ -42,11 +42,9 @@ runs:
42
LICENSE_PATTERN="Copyright \(c\) .*?${CURRENT_YEAR},? NVIDIA CORPORATION."
43
44
# 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
+ if [[ "${{ inputs.check_main }}" == "false" && "${{ github.event.pull_request.base.ref }}" == "main" ]]; then
+ echo "Skip this check for Merge to main PR."
+ exit 0
50
fi
51
52
# Format file patterns
0 commit comments