Skip to content

Commit

Permalink
Backport of NET-5371 License checker pt2 into release/1.15.x (#18494)
Browse files Browse the repository at this point in the history
NET-5371 License checker pt2 (#18491)

* Update grep command to work on ubuntu

* Run license checker when new commits are pushed to PR

Co-authored-by: Nathan Coleman <[email protected]>
  • Loading branch information
hc-github-team-consul-core and nathancoleman committed Aug 16, 2023
1 parent 77b49df commit 8b5e103
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 8b5e103

Please sign in to comment.