mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
NET-5371 License checker pt2 (#18491)
* Update grep command to work on ubuntu * Run license checker when new commits are pushed to PR
This commit is contained in:
parent
aa21b12321
commit
d488fc79a9
2
.github/scripts/license_checker.sh
vendored
2
.github/scripts/license_checker.sh
vendored
@ -3,7 +3,7 @@
|
|||||||
# SPDX-License-Identifier: BUSL-1.1
|
# 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 we do not find a file in .changelog/, we fail the check
|
||||||
if [ -n "$busl_files" ]; then
|
if [ -n "$busl_files" ]; then
|
||||||
|
2
.github/workflows/license-checker.yml
vendored
2
.github/workflows/license-checker.yml
vendored
@ -7,7 +7,7 @@ name: License Checker
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened]
|
types: [opened, synchronize]
|
||||||
branches:
|
branches:
|
||||||
- release/1.14.*
|
- release/1.14.*
|
||||||
- release/1.15.*
|
- release/1.15.*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user