From d488fc79a9d622cb7506486d171457c991e864fe Mon Sep 17 00:00:00 2001 From: Nathan Coleman Date: Wed, 16 Aug 2023 16:48:14 -0400 Subject: [PATCH] NET-5371 License checker pt2 (#18491) * Update grep command to work on ubuntu * Run license checker when new commits are pushed to PR --- .github/scripts/license_checker.sh | 2 +- .github/workflows/license-checker.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/license_checker.sh b/.github/scripts/license_checker.sh index fb1ac4194d..6ba026f04f 100755 --- a/.github/scripts/license_checker.sh +++ b/.github/scripts/license_checker.sh @@ -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 diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 13a2135804..747f81490e 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -7,7 +7,7 @@ name: License Checker on: pull_request: - types: [opened] + types: [opened, synchronize] branches: - release/1.14.* - release/1.15.*