Skip to content

Commit

Permalink
NET-5371 License checker pt2 (#18491)
Browse files Browse the repository at this point in the history
* Update grep command to work on ubuntu

* Run license checker when new commits are pushed to PR
  • Loading branch information
nathancoleman authored Aug 16, 2023
1 parent aa21b12 commit d488fc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/license_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: BUSL-1.1


busl_files=$(grep -r 'SPDX-License-Identifier: BUSL' --exclude=./.github/scripts/license_checker.sh .)
busl_files=$(grep -r 'SPDX-License-Identifier: BUSL' . --exclude-dir .github)

# If we do not find a file in .changelog/, we fail the check
if [ -n "$busl_files" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: License Checker

on:
pull_request:
types: [opened]
types: [opened, synchronize]
branches:
- release/1.14.*
- release/1.15.*
Expand Down

0 comments on commit d488fc7

Please sign in to comment.